Function at 0x4374c8
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4c2002
call fcn.00494508
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x72c], ebx
je 0x4377cd
mov eax, dword [esi + 0x730]
mov edi, eax
cmp eax, 0xffffffff
jne 0x4374f4
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
xor ecx, ecx
cmp dword [ebp + 0x10], ebx
sete cl
add eax, 0xeb0
cmp byte [eax + 7], 0xff
lea ecx, [ecx + ecx + 2]
jne 0x43750f
mov eax, dword [eax]
push ebx
push 0x80
push ecx
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x4377cd
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x1c]
call fcn.004724b0
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x437582
mov edi, dword [ebp + 8]
push edi
call fcn.00494a70
or dword [ebp + 8], 0xffffffff
cmp dword [0x4f73c8], 0
pop ecx
mov ebx, eax
je 0x4375d1
lea eax, [ebp + 8]
push eax
push 0x4fc2ec
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push edi
call fcn.00472760
mov ecx, esi
call fcn.0043688b
jmp 0x4375d1
cmp edi, 4
jne 0x4375e5
mov edi, dword [ebp + 8]
push edi
call fcn.00494a70
cmp dword [0x4f73c8], 0
pop ecx
mov ebx, eax
je 0x4375d1
cmp byte [0x4fc2f3], 0xff
mov esi, 0x4fc2ec
je 0x4375af
mov dword [ebp + 8], esi
jmp 0x4375b7
mov eax, dword [0x4fc2ec]
mov dword [ebp + 8], eax
push 0
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
call fcn.004724c0
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
cmp byte [ebx + edi - 1], 0xa
sete al
mov dword [0x4f73c8], eax
jmp 0x4377a3
cmp edi, 3
jne 0x437635
mov edi, dword [ebp + 8]
push 0x4ce1ec
push edi
call fcn.00493860
push 0x4cd9e8
push edi
mov ebx, eax
call fcn.00493860
add esp, 0x10
test eax, eax
je 0x437612
cmp eax, ebx
jae 0x437612
mov ebx, eax
test ebx, ebx
je 0x43762a
sub ebx, edi
push 1
lea ecx, [esi + 0x414]
call fcn.004731d0
jmp 0x437798
push edi
call fcn.00494a70
pop ecx
mov ebx, eax
jmp 0x437618
cmp edi, 2
jne 0x437655
mov edi, dword [ebp + 8]
push 0x4d4fdc
push edi
call fcn.00493860
pop ecx
pop ecx
cmp eax, ebx
je 0x43762a
sub eax, edi
lea ebx, [eax + 1]
jmp 0x437618
cmp edi, 1
mov edi, dword [ebp + 8]
jne 0x4377a0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
push edi
mov ecx, esi
mov dword [ebp + 0x10], ebx
call fcn.00436845
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.00472d40
mov esi, 0x4fc2ec
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004727f0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00472740
mov ecx, esi
call fcn.004724c0
cmp byte [0x4fc2f3], 0xff
mov dword [ebp - 0x10], eax
mov ebx, esi
jne 0x4376ba
mov ebx, dword [0x4fc2ec]
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004724c0
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.00493860
push 0x4ce1ec
push edi
mov dword [ebp + 8], eax
call fcn.00493860
add esp, 0x10
test eax, eax
je 0x4376fa
cmp byte [eax - 1], 0xd
jne 0x4376fa
dec eax
mov ebx, eax
sub ebx, edi
cmp dword [ebp + 8], 0
je 0x4377a3
test eax, eax
je 0x437715
cmp eax, dword [ebp + 8]
jb 0x4377a3
push esi
call fcn.00494a70
mov esi, eax
add esi, dword [ebp + 8]
mov dword [esp], str.OOO____
push esi
call fcn.00493860
pop ecx
pop ecx
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00472d40
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.0043746b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004727f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00472740
push 1
lea ecx, [ebp - 0x1c]
call fcn.004731d0
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.004724c0
lea ecx, [ebp - 0x24]
mov ebx, eax
mov byte [ebp - 4], 0
call fcn.00472740
jmp 0x4377a3
mov cl, byte [edi]
cmp cl, 0x20
je 0x437797
cmp cl, 9
jne 0x43779d
inc ebx
cmp edi, eax
dec edi
jae 0x43778b
inc edi
jmp 0x4377a3
mov ebx, dword [ebp + 8]
test edi, edi
je 0x4377b8
push 0
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.00472740
call fcn.004945e0
ret 0xc