Function at 0x48ec00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x67e4d0]
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 0x48ec27
mov eax, 1
jmp 0x48efa9
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 0x48ec6e
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.00490820
cmp dword [ebp - 0x48], eax
jae 0x48ee60
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.0048d8d0
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.0048e350
test eax, eax
jne 0x48eccd
xor eax, eax
jmp 0x48efa9
push 0x104
push 0
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.0048d8d0
add eax, 0x20c
push eax
call fcn.0058a9f0
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.0048d8d0
add eax, 0x20c
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.0048d8d0
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 0x48ed3e
xor eax, eax
jmp 0x48efa9
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.0048d8d0
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.0048d8d0
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 0x48eda3
xor eax, eax
jmp 0x48efa9
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.0048d8d0
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 0x48ede9
xor eax, eax
jmp 0x48efa9
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x50]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x2a], 0
je 0x48ee10
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.0048d8d0
cmp dword [eax + 0x310], 0
jne 0x48ee15
jmp 0x48ec65
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.0048d8d0
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 0x48ee52
xor eax, eax
jmp 0x48efa9
mov ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x50]
mov dword [ebp - 0x44], ecx
jmp 0x48ec65
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.00490820
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.00490820
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 0x48eecb
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x1c
call fcn.00490820
cmp dword [ebp - 0x54], eax
jae 0x48ef78
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.0048d8d0
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 0x48ef16
xor eax, eax
jmp 0x48efa9
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.0048d8d0
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.0048d8d0
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 0x48ef6a
xor eax, eax
jmp 0x48efa9
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
jmp 0x48eec2
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 0x48efa4
xor eax, eax
jmp 0x48efa9
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret