Function at 0x471600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x10], 0
jne 0x471627
mov eax, 1
jmp 0x4719a9
push 0
push 0
push 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
jmp 0x47166e
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.00473260
cmp dword [ebp - 0x48], eax
jae 0x471860
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x3c], 0x4034b50
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.00470d50
test eax, eax
jne 0x4716cd
xor eax, eax
jmp 0x4719a9
push 0x104
push 0
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
add eax, 0x20c
push eax
call fcn.0058abd0
add esp, 0xc
push 0
push 0
push 0x104
mov edx, dword [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
add eax, 0x20c
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
add eax, 4
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x47173e
xor eax, eax
jmp 0x4719a9
mov ecx, dword [ebp - 0x58]
sub ecx, 1
mov word [ebp - 0x22], cx
mov esi, dword [ebp - 0x58]
sub esi, 1
mov edx, dword [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
mov eax, dword [eax]
mov word [eax + 0x1c], si
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
mov edx, dword [eax]
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x2a], eax
push 0
lea ecx, [ebp - 0x50]
push ecx
push 0x1e
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x4717a3
xor eax, eax
jmp 0x4719a9
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x50]
mov dword [ebp - 0x44], edx
push 0
lea eax, [ebp - 0x50]
push eax
movzx ecx, word [ebp - 0x22]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
add eax, 0x20c
push eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x4717e9
xor eax, eax
jmp 0x4719a9
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x50]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x2a], 0
je 0x471810
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
cmp dword [eax + 0x310], 0
jne 0x471815
jmp 0x471665
push 0
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x2a]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
mov ecx, dword [eax + 0x310]
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x471852
xor eax, eax
jmp 0x4719a9
mov ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x50]
mov dword [ebp - 0x44], ecx
jmp 0x471665
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov word [ebp - 8], dx
mov dword [ebp - 0x1c], 0x6054b50
xor eax, eax
mov word [ebp - 0x18], ax
xor ecx, ecx
mov word [ebp - 0x16], cx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.00473260
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.00473260
mov word [ebp - 0x12], ax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0xc], edx
xor eax, eax
mov word [ebp - 8], ax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x54], 0
jmp 0x4718cb
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.00473260
cmp dword [ebp - 0x54], eax
jae 0x471978
push 0
lea edx, [ebp - 0x50]
push edx
push 0x2e
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x471916
xor eax, eax
jmp 0x4719a9
mov ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x50]
mov dword [ebp - 0x44], ecx
push 0
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
mov ecx, dword [eax]
movzx edx, word [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.004702d0
add eax, 0x20c
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x47196a
xor eax, eax
jmp 0x4719a9
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
jmp 0x4718c2
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x10], ecx
push 0
lea edx, [ebp - 0x50]
push edx
push 0x16
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x4719a4
xor eax, eax
jmp 0x4719a9
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret