Function at 0x41a030
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44ac98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, 0xf
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov edi, dword [esp + 0x6c]
cmp dword [edi + 0x18], 0x10
mov dword [esp + 0x64], ebx
jb 0x41a076
mov eax, dword [edi + 4]
jmp 0x41a079
lea eax, [edi + 4]
cmp byte [eax], 0x40
jne 0x41a07f
inc eax
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41a16f
push 0xa
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043d549
add esp, 0xc
push 0x1c
push str.Warning:_cant_open_storage
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00401ab0
push ebp
push ebx
push edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 1
call fcn.0040b9c0
push 0xd
push str._for_writing
lea ecx, [esp + 0x2c]
call fcn.0040bab0
mov ecx, dword [esp + 0x70]
push ebp
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0040b9c0
push 0xe
push str.__error_code:
lea ecx, [esp + 0x2c]
call fcn.0040bab0
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41a116
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
call fcn.0040bab0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
add ecx, 0x2dc
call fcn.0040bcc0
cmp dword [esp + 0x3c], 0x10
jb 0x41a283
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0043c389
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 8
mov esi, dword [esp + 0x70]
cmp dword [esi + 0x18], 0x10
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x6c], ebx
jb 0x41a185
mov eax, dword [esi + 4]
jmp 0x41a188
lea eax, [esi + 4]
push ebx
lea edx, [esp + 0x70]
push edx
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41a27c
push 0xa
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043d549
add esp, 0xc
push 0x20
push str.Warning:_cant_write_to_storage
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00401ab0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 2
call fcn.0040b9c0
push 0xd
push str._for_writing
lea ecx, [esp + 0x2c]
call fcn.0040bab0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.0040b9c0
push 0xe
push str.__error_code:
lea ecx, [esp + 0x2c]
call fcn.0040bab0
lea eax, [esp + 0x14]
lea edx, [eax + 1]
jmp 0x41a220
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41a220
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040bab0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
add ecx, 0x2dc
call fcn.0040bcc0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x3c], 0x10
jb 0x41a283
mov eax, dword [esp + 0x28]
push eax
call fcn.0043c389
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8