Function at 0x401c90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x514
mov eax, dword [0x458e40]
push ebx
mov ebx, dword [esp + 0x520]
mov dword [esp + 0x514], eax
mov eax, ebx
push ebp
mov ebp, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cb2
sub eax, edx
mov dword [esp + 8], eax
jne 0x401d16
xor eax, eax
mov dword [ebp + 0xd558], eax
mov dword [ebp + 0xd554], eax
mov dword [ebp + 0xd55c], eax
mov dword [ebp + 0xd560], eax
mov dword [ebp + 0xd564], eax
mov dword [ebp + 0xd568], eax
mov dword [ebp + 0xd56c], eax
mov dword [ebp + 0xd570], eax
mov dword [ebp + 0xd574], eax
mov byte [ebp + 0xd450], al
pop ebp
pop ebx
mov ecx, dword [esp + 0x510]
call fcn.004332fd
add esp, 0x514
ret 0x10
mov eax, dword [esp + 0x520]
test eax, eax
push esi
push edi
jne 0x401dca
push 0x104
lea eax, [esp + 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x320]
push ecx
lea edx, [esp + 0x424]
push edx
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x22c]
push edx
call fcn.00433184
add esp, 0x14
xor eax, eax
jmp 0x401d70
mov cl, byte [esp + eax + 0x14]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x401d70
lea eax, [esp + 0x11c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d86
lea edi, [esp + 0x18]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401d94
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401db0
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401dc0
jmp 0x401e0d
lea edx, [esp + 0x18]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401dd0
lea edi, [esp + 0x18]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401de0
mov ax, word [0x441374]
mov word [edi], ax
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401df5
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401e03
mov esi, edx
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x8000000
push 2
push 0
mov ecx, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push 0x40000000
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401f0c
mov eax, dword [esp + 0x534]
mov edx, dword [esp + 0x530]
mov dword [ebp + 0xd44c], eax
add eax, eax
push eax
mov dword [ebp + 0xd43c], edx
call fcn.004255e0
mov dword [ebp + 0xd440], eax
xor eax, eax
add esp, 4
mov ecx, ebp
mov dword [ebp + 0xd448], eax
mov dword [ebp + 0xd444], eax
call fcn.004018f0
lea edx, [ebp + 0xd450]
xor eax, eax
mov ecx, 0x4a
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x52c]
mov esi, edx
sub esi, eax
nop
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401ea0
mov eax, dword [ebp]
mov ecx, dword [ebp + 0xd44c]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov dword [ebp + 0xd558], eax
lea eax, [esp + 0x14]
push eax
push 0x128
mov dword [ebp + 0xd554], ecx
mov ecx, dword [ebp + 0xd440]
push edx
push ebx
mov dword [ebp + 0xd574], ecx
call esi
mov edx, dword [ebp]
mov eax, dword [ebp + 0xd440]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push ebx
call esi
mov ecx, dword [ebp + 0xd440]
push ecx
call fcn.00433116
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x520]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004332fd
add esp, 0x514
ret 0x10