Function at 0x439de5
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4c2233
call fcn.004943c6
mov edx, ecx
mov dword [ebp - 0x10], edx
xor esi, esi
cmp dword [edx + 0x864], esi
je 0x43a0d3
mov eax, dword [edx + 0x868]
mov edi, eax
cmp eax, 0xffffffff
jne 0x439e14
mov edi, dword [ebp + 0xc]
mov eax, dword [edx]
xor ecx, ecx
cmp dword [ebp + 0x10], esi
sete cl
add eax, 0x1014
cmp byte [eax + 7], 0xff
lea ecx, [ecx + ecx + 2]
jne 0x439e2f
mov eax, dword [eax]
push esi
push 0x80
push ecx
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x43a0d3
push 2
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x1c]
call fcn.00472090
xor ebx, ebx
mov dword [ebp - 4], esi
cmp edi, esi
jne 0x439ea4
mov edi, dword [ebp + 8]
push edi
call fcn.00494920
or dword [ebp + 8], 0xffffffff
pop ecx
mov ebx, eax
cmp dword [0x4fd3c4], esi
je 0x439ef4
lea eax, [ebp + 8]
push eax
push 0x5024d0
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push edi
call fcn.00472340
mov ecx, dword [ebp - 0x10]
call fcn.00439443
jmp 0x439ef4
cmp edi, 4
jne 0x439f08
mov edi, dword [ebp + 8]
push edi
call fcn.00494920
pop ecx
mov ebx, eax
cmp dword [0x4fd3c4], esi
je 0x439ef4
cmp byte [0x5024d7], 0xff
mov esi, 0x5024d0
je 0x439ed0
mov dword [ebp + 8], esi
jmp 0x439ed8
mov eax, dword [0x5024d0]
mov dword [ebp + 8], eax
push 0
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
call fcn.004720a0
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
xor eax, eax
cmp byte [ebx + edi - 1], 0xa
sete al
mov dword [0x4fd3c4], eax
jmp 0x43a0aa
cmp edi, 3
jne 0x439f5b
mov edi, dword [ebp + 8]
push 0x4d2400
push edi
call fcn.00493420
push 0x4d1a38
push edi
mov ebx, eax
call fcn.00493420
add esp, 0x10
cmp eax, esi
je 0x439f35
cmp eax, ebx
jae 0x439f35
mov ebx, eax
cmp ebx, esi
je 0x439f50
sub ebx, edi
mov ecx, dword [ebp - 0x10]
push 1
add ecx, 0x54c
call fcn.00472db0
jmp 0x43a0e8
push edi
call fcn.00494920
pop ecx
mov ebx, eax
jmp 0x439f3b
cmp edi, 2
jne 0x439f7b
mov edi, dword [ebp + 8]
push 0x4d1b28
push edi
call fcn.00493420
pop ecx
pop ecx
cmp eax, esi
je 0x439f50
sub eax, edi
lea ebx, [eax + 1]
jmp 0x439f3b
cmp edi, 1
mov edi, dword [ebp + 8]
jne 0x43a0aa
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 0x10], esi
call fcn.004393fd
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.00472920
mov esi, 0x5024d0
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004723d0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00472320
mov ecx, esi
call fcn.004720a0
cmp byte [0x5024d7], 0xff
mov dword [ebp - 0x10], eax
mov ebx, esi
jne 0x439fe1
mov ebx, dword [0x5024d0]
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004720a0
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, str._____ORG:
push esi
push edi
call fcn.00493420
push 0x4d2400
push edi
mov dword [ebp + 8], eax
call fcn.00493420
add esp, 0x10
test eax, eax
je 0x43a021
cmp byte [eax - 1], 0xd
jne 0x43a021
dec eax
mov ebx, eax
sub ebx, edi
cmp dword [ebp + 8], 0
je 0x43a0a8
test eax, eax
je 0x43a034
cmp eax, dword [ebp + 8]
jb 0x43a0a8
push esi
call fcn.00494920
mov esi, eax
add esi, dword [ebp + 8]
mov dword [esp], str.OOO____
push esi
call fcn.00493420
pop ecx
pop ecx
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00472920
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.00411e30
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004723d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00472320
push 1
lea ecx, [ebp - 0x1c]
call fcn.00472db0
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.004720a0
lea ecx, [ebp - 0x24]
mov ebx, eax
mov byte [ebp - 4], 0
call fcn.00472320
xor esi, esi
cmp edi, esi
je 0x43a0be
push esi
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00472320
call fcn.0049449e
ret 0xc
mov cl, byte [edi]
cmp cl, 0x20
je 0x43a0e7
cmp cl, 9
jne 0x43a0ed
inc ebx
cmp edi, eax
dec edi
jae 0x43a0db
inc edi
jmp 0x43a0aa