Function at 0x42e3a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x457c
call fcn.004939a0
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x457c], ecx
cmp dword [ebp + 0x14], 3
je 0x42e3d9
cmp dword [ebp + 0x14], 2
je 0x42e3d9
cmp dword [ebp + 0x14], 1
je 0x42e3d9
mov eax, 0x10000
jmp 0x42e7e5
cmp dword [ebp + 0x14], 3
jne 0x42e506
mov eax, dword [ebp - 0x457c]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x42e49a
mov edx, dword [ebp - 0x457c]
cmp dword [edx + 4], 0xffffffff
je 0x42e412
mov eax, dword [ebp - 0x457c]
mov ecx, dword [eax]
push ecx
call fcn.0042d860
add esp, 4
mov edx, dword [ebp - 0x457c]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x457c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x42e439
mov eax, 0x10000
jmp 0x42e7e5
mov eax, dword [ebp - 0x457c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x42e45a
mov eax, dword [ebp - 0x457c]
mov ecx, dword [eax]
push ecx
call fcn.0042cd30
add esp, 4
mov edx, dword [ebp - 0x457c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x42e47d
mov edx, dword [ebp - 0x457c]
mov eax, dword [edx]
push eax
call fcn.0042cda0
add esp, 4
jmp 0x42e45a
mov ecx, dword [ebp - 0x457c]
mov edx, dword [ecx]
push edx
call fcn.0042d250
add esp, 4
mov eax, dword [ebp - 0x457c]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x457c]
mov edx, dword [ecx]
push edx
call fcn.0042d410
add esp, 0xc
mov dword [ebp - 0x414c], eax
cmp dword [ebp - 0x414c], 0
jle 0x42e4cc
mov eax, 0x600
jmp 0x42e7e5
mov eax, dword [ebp - 0x457c]
mov ecx, dword [eax]
push ecx
call fcn.0042d860
add esp, 4
mov edx, dword [ebp - 0x457c]
mov dword [edx + 4], 0xffffffff
cmp dword [ebp - 0x414c], 0
jne 0x42e4fc
xor eax, eax
jmp 0x42e7e5
mov eax, 0x5000000
jmp 0x42e7e5
mov eax, dword [ebp - 0x457c]
cmp dword [eax + 4], 0xffffffff
je 0x42e523
mov ecx, dword [ebp - 0x457c]
mov edx, dword [ecx]
push edx
call fcn.0042d860
add esp, 4
mov eax, dword [ebp - 0x457c]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 0x457c]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 4]
jl 0x42e54a
mov eax, 0x10000
jmp 0x42e7e5
mov ecx, dword [ebp - 0x457c]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jge 0x42e56b
mov ecx, dword [ebp - 0x457c]
mov edx, dword [ecx]
push edx
call fcn.0042cd30
add esp, 4
mov eax, dword [ebp - 0x457c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x42e58e
mov eax, dword [ebp - 0x457c]
mov ecx, dword [eax]
push ecx
call fcn.0042cda0
add esp, 4
jmp 0x42e56b
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x457c]
call fcn.0042db20
mov ecx, dword [ebp - 0x38]
and ecx, 0x10
je 0x42e5f7
cmp dword [ebp + 0x14], 1
jne 0x42e5b9
xor eax, eax
jmp 0x42e7e5
push 0x103
lea edx, [ebp - 0x4358]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.0042e800
add esp, 0xc
lea ecx, [ebp - 0x4358]
push ecx
mov edx, dword [ebp - 0x457c]
add edx, 0x138
push edx
call fcn.0042e280
add esp, 8
xor eax, eax
jmp 0x42e7e5
cmp dword [ebp + 0x14], 1
jne 0x42e608
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x42e6c0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x435c], ecx
mov edx, dword [ebp - 0x435c]
mov dword [ebp - 0x456c], edx
mov eax, dword [ebp - 0x456c]
movzx ecx, word [eax]
test ecx, ecx
je 0x42e666
mov edx, dword [ebp - 0x456c]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x42e646
mov ecx, dword [ebp - 0x456c]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x42e655
mov eax, dword [ebp - 0x456c]
add eax, 2
mov dword [ebp - 0x435c], eax
mov ecx, dword [ebp - 0x456c]
add ecx, 2
mov dword [ebp - 0x456c], ecx
jmp 0x42e61d
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x4568]
push eax
call fcn.00493a44
add esp, 8
mov ecx, dword [ebp - 0x435c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x456a], dx
lea eax, [ebp - 0x4568]
push eax
push 0x4d86f4
call fcn.0042e280
add esp, 8
push 0
mov ecx, dword [ebp - 0x38]
push ecx
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42e6d0
mov eax, 0x200
jmp 0x42e7e5
mov eax, dword [ebp - 0x457c]
mov ecx, dword [eax]
push ecx
call fcn.0042d250
add esp, 4
mov byte [ebp - 0x142], 0
push 0x4000
lea edx, [ebp - 0x4148]
push edx
mov eax, dword [ebp - 0x457c]
mov ecx, dword [eax]
push ecx
call fcn.0042d410
add esp, 0xc
mov dword [ebp - 0x4570], eax
cmp dword [ebp - 0x4570], 0
jge 0x42e71d
mov byte [ebp - 0x142], 1
jmp 0x42e763
cmp dword [ebp - 0x4570], 0
jne 0x42e728
jmp 0x42e763
push 0
lea edx, [ebp - 0x4578]
push edx
mov eax, dword [ebp - 0x4570]
push eax
lea ecx, [ebp - 0x4148]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4574], eax
cmp dword [ebp - 0x4574], 0
jne 0x42e761
mov byte [ebp - 0x142], 1
jmp 0x42e763
jmp 0x42e6e8
mov byte [ebp - 0x141], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x42e78f
movzx ecx, byte [ebp - 0x142]
test ecx, ecx
jne 0x42e78f
mov byte [ebp - 0x141], 1
movzx edx, byte [ebp - 0x141]
test edx, edx
je 0x42e7b0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x42e7c0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x457c]
mov eax, dword [edx]
push eax
call fcn.0042d860
add esp, 4
movzx ecx, byte [ebp - 0x142]
test ecx, ecx
je 0x42e7e3
mov eax, 0x400
jmp 0x42e7e5
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret 0x10