Function at 0x438e80
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x124c
call fcn.0058a1c0
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x1244], eax
push ebx
mov ebx, dword [esp + 0x1254]
push ebp
mov ebp, dword [esp + 0x125c]
push esi
or esi, 0xffffffff
push edi
cmp dword [ebx + 4], esi
je 0x438eb9
mov edi, dword [ebx]
call fcn.00438680
mov dword [ebx + 4], esi
mov esi, dword [ebx]
cmp dword [esi + 4], 0
jg 0x438ece
mov eax, 0x10000
jmp 0x4391c8
cmp dword [esi + 0x10], 0
jle 0x438ed9
call fcn.00438010
mov eax, dword [ebx]
cmp dword [eax + 0x10], 0
jge 0x438f2f
mov esi, dword [ebx]
test esi, esi
je 0x438f27
cmp dword [esi + 0x18], 0
je 0x438f27
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x438f27
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
xor eax, eax
mov ecx, esi
call fcn.00437d90
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebx]
cmp dword [ecx + 0x10], 0
jl 0x438ee1
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.00438830
test byte [esp + 0x22c], 0x10
movzx eax, word [ebp]
je 0x438f89
cmp ax, 0x2f
je 0x438f60
cmp ax, 0x5c
je 0x438f60
test ax, ax
je 0x438f72
cmp word [ebp + 2], 0x3a
jne 0x438f72
push ebp
push 0
call fcn.00438d40
add esp, 8
xor eax, eax
jmp 0x4391c8
push ebp
add ebx, 0x244
push ebx
call fcn.00438d40
add esp, 8
xor eax, eax
jmp 0x4391c8
mov edi, ebp
mov ecx, ebp
test ax, ax
je 0x438fb0
movzx eax, ax
cmp ax, 0x2f
je 0x438fa1
cmp ax, 0x5c
jne 0x438fa4
lea edi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x438f95
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x25a]
push ecx
mov word [esp + 0x25c], ax
call fcn.00587fb0
lea edx, [esp + 0x25c]
add esp, 0xc
mov eax, ebp
sub edx, ebp
jmp 0x438fe0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x438fe0
cmp edi, ebp
jne 0x438fff
xor esi, esi
mov word [esp + 0x250], si
jmp 0x439017
mov edx, edi
sub edx, ebp
sar edx, 1
xor eax, eax
mov word [esp + edx*2 + 0x250], ax
mov si, word [esp + 0x250]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0xa5a]
push edx
mov word [esp + 0xa5c], cx
call fcn.00587fb0
add esp, 0xc
cmp si, 0x2f
je 0x439053
cmp si, 0x5c
je 0x439053
test si, si
je 0x439083
cmp word [esp + 0x252], 0x3a
jne 0x439083
push edi
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0xa58]
push 0x6092f0
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x260]
push edx
push 0
call fcn.00438d40
add esp, 0x18
jmp 0x4390ba
push edi
lea eax, [esp + 0x254]
push eax
lea esi, [ebx + 0x244]
push esi
lea ecx, [esp + 0xa5c]
push 0x6092fc
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [esp + 0x250]
push edx
push esi
call fcn.00438d40
add esp, 8
mov eax, dword [esp + 0x22c]
push 0
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0xa68]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4390ee
mov eax, 0x200
jmp 0x4391c8
mov edx, dword [ebx + 0x23c]
mov eax, dword [ebx]
push edx
call fcn.00438290
add esp, 4
cmp dword [ebx + 0x240], 0
jne 0x43911b
push 0x4000
call fcn.005759c5
add esp, 4
mov dword [ebx + 0x240], eax
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], 0
lea esp, [esp]
mov ecx, dword [ebx + 0x240]
lea eax, [esp + 0x17]
push eax
mov eax, dword [ebx]
push ecx
mov ecx, 0x4000
call fcn.00438410
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x439183
test esi, esi
jl 0x439179
jle 0x43916e
mov eax, dword [ebx + 0x240]
push 0
lea edx, [esp + 0x20]
push edx
push esi
push eax
push edi
call ebp
test eax, eax
je 0x43918d
cmp byte [esp + 0x17], 0
jne 0x439197
test esi, esi
jne 0x439130
mov dword [esp + 0x18], 0x5000000
jmp 0x4391b6
mov dword [esp + 0x18], 0x1000
jmp 0x4391b6
mov dword [esp + 0x18], 0x400
jmp 0x4391b6
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx]
call fcn.00438680
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1254]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005832f8
add esp, 0x124c
ret 8