Function at 0x42e590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x433c
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
cmp esi, 3
je 0x42e8c1
cmp esi, 2
je 0x42e5dd
cmp esi, 1
je 0x42e5dd
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 4], 0xffffffff
je 0x42e5ed
push dword [edi]
call fcn.00431170
add esp, 4
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ecx, dword [eax + 4]
jge 0x42e5c5
cmp ecx, dword [eax + 0x10]
jge 0x42e60f
push eax
call fcn.00431200
mov ecx, dword [ebp + 8]
add esp, 4
mov eax, dword [edi]
cmp dword [eax + 0x10], ecx
jge 0x42e671
mov esi, dword [edi]
test esi, esi
je 0x42e667
cmp dword [esi + 0x18], 0
je 0x42e667
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x42e667
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
add ecx, dword [esi + 0x4c]
add eax, 0x2e
push 0
push 0
push 0
push 0
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push 0
push eax
lea eax, [esi + 0x28]
push eax
push esi
call fcn.00431aa0
mov ecx, dword [ebp + 8]
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [edi]
cmp dword [eax + 0x10], ecx
jl 0x42e616
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x4338]
push eax
push ecx
mov ecx, edi
call fcn.0042dfe0
test byte [ebp - 0x4230], 0x10
je 0x42e6d1
cmp esi, 1
je 0x42e6bc
push 0x103
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x4334]
push eax
call fcn.0042e4b0
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0x138]
push eax
call fcn.0042de30
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 1
je 0x42e7f2
movzx eax, word [ebx]
mov edx, ebx
mov ecx, ebx
test ax, ax
je 0x42e7d6
nop word [eax + eax]
cmp ax, 0x2f
je 0x42e6fc
cmp ax, 0x5c
jne 0x42e6ff
lea edx, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x42e6f0
cmp edx, ebx
je 0x42e7d6
lea esi, [ebp - 0x20c]
mov ecx, ebx
sub esi, ebx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x42e720
sub edx, ebx
sar edx, 1
lea edx, [edx*2 - 2]
cmp edx, 0x208
jae 0x42e97b
xor eax, eax
mov word [ebp + edx - 0x20c], ax
mov ax, word [ebp - 0x20c]
cmp ax, 0x2f
je 0x42e778
cmp ax, 0x5c
je 0x42e778
cmp word [ebp - 0x20a], 0x3a
mov dword [ebp - 0x433c], 0
jne 0x42e782
mov dword [ebp - 0x433c], 1
lea eax, [ebp - 0x20c]
push 0x51ccb8
push eax
call fcn.004e480a
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x51ccc0
push eax
call fcn.004e480a
add esp, 0x10
neg eax
sbb eax, eax
xor ecx, ecx
neg eax
test esi, esi
setne cl
or eax, ecx
or eax, dword [ebp - 0x433c]
jne 0x42e7d6
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0x138]
push eax
call fcn.0042de30
add esp, 8
push 0
push dword [ebp - 0x4230]
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42e80f
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 0x10
push dword [edi]
call fcn.00431440
push 0x4000
lea eax, [ebp - 0x420c]
xor esi, esi
push eax
push dword [edi]
call fcn.00431730
add esp, 0x10
test eax, eax
js 0x42e86a
je 0x42e86f
push 0
lea ecx, [ebp - 0x433c]
push ecx
push eax
lea eax, [ebp - 0x420c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x42e86a
push 0x4000
lea eax, [ebp - 0x420c]
push eax
push dword [edi]
call fcn.00431730
add esp, 0xc
test eax, eax
jns 0x42e832
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
jne 0x42e89b
test esi, esi
jne 0x42e89b
lea eax, [ebp - 0x421c]
push eax
lea eax, [ebp - 0x422c]
push eax
lea eax, [ebp - 0x4224]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x42e8a8
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [edi]
call fcn.00431170
add esp, 4
neg esi
sbb esi, esi
and esi, 0x400
jmp 0x42e966
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x42e91f
cmp eax, 0xffffffff
je 0x42e8da
push dword [edi]
call fcn.00431170
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x42e5c5
cmp esi, dword [eax + 0x10]
jge 0x42e8fa
push eax
call fcn.00431200
add esp, 4
mov eax, dword [edi]
cmp dword [eax + 0x10], esi
jge 0x42e912
push dword [edi]
call fcn.00431250
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x42e901
push dword [edi]
call fcn.00431440
add esp, 4
mov dword [edi + 4], esi
push dword [ebp + 0x10]
push ebx
push dword [edi]
call fcn.00431730
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x42e94b
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 0x10
push dword [edi]
call fcn.00431170
add esp, 4
mov dword [edi + 4], 0xffffffff
neg esi
sbb esi, esi
and esi, 0x5000000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 0x10
call fcn.004e2a5f
int3