Function at 0x42ef90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x477c
call fcn.0059f1e0
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x67b515
call fcn.0059f048
cmp dword [ebp + 0x14], 3
je 0x42efd3
cmp dword [ebp + 0x14], 2
je 0x42efd3
cmp dword [ebp + 0x14], 1
je 0x42efd3
mov eax, 0x10000
jmp 0x42f4ba
cmp dword [ebp + 0x14], 3
jne 0x42f0cd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x42f073
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x42f003
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434070
add esp, 4
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x42f024
mov eax, 0x10000
jmp 0x42f4ba
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x42f03f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.004341a0
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x42f05c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434230
add esp, 4
jmp 0x42f03f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434310
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call fcn.004347a0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x42f09c
mov eax, 0x600
jmp 0x42f4ba
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434070
add esp, 4
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
cmp dword [ebp - 0xc], 0
jne 0x42f0c3
xor eax, eax
jmp 0x42f4ba
mov eax, 0x5000000
jmp 0x42f4ba
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x42f0e4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434070
add esp, 4
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x42f105
mov eax, 0x10000
jmp 0x42f4ba
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x42f120
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.004341a0
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x42f13d
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434230
add esp, 4
jmp 0x42f120
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0042e430
mov eax, dword [ebp - 0x30]
and eax, 0x10
je 0x42f1a0
cmp dword [ebp + 0x14], 1
jne 0x42f165
xor eax, eax
jmp 0x42f4ba
push 0x103
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x134]
push ecx
call fcn.0042ecc0
add esp, 0xc
lea eax, [ebp - 0x340]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x138
push ecx
call fcn.0042e2f0
add esp, 8
xor eax, eax
jmp 0x42f4ba
cmp dword [ebp + 0x14], 1
jne 0x42f1b4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x344], eax
jmp 0x42f389
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp - 0x34c]
movzx ecx, word [eax]
test ecx, ecx
je 0x42f212
mov eax, dword [ebp - 0x34c]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x42f1f2
mov eax, dword [ebp - 0x34c]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x42f201
mov eax, dword [ebp - 0x34c]
add eax, 2
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x34c]
add eax, 2
mov dword [ebp - 0x34c], eax
jmp 0x42f1c9
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp + 0xc]
je 0x42f368
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x554]
push ecx
call fcn.005ae201
add esp, 8
mov eax, dword [ebp - 0x348]
sub eax, dword [ebp + 0xc]
sar eax, 1
lea ecx, [eax + eax - 2]
mov dword [ebp - 0x4774], ecx
cmp dword [ebp - 0x4774], 0x208
jae 0x42f257
jmp 0x42f25c
call fcn.0059ef6e
xor edx, edx
mov eax, dword [ebp - 0x4774]
mov word [ebp + eax - 0x554], dx
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x554]
cmp edx, 0x2f
je 0x42f2b7
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x554]
cmp edx, 0x5c
je 0x42f2b7
mov eax, 2
shl eax, 0
movzx ecx, word [ebp + eax - 0x554]
cmp ecx, 0x3a
je 0x42f2b7
mov dword [ebp - 0x4778], 0
jmp 0x42f2c1
mov dword [ebp - 0x4778], 1
mov dl, byte [ebp - 0x4778]
mov byte [ebp - 0x555], dl
push 0x5f4d6c
lea eax, [ebp - 0x554]
push eax
call fcn.004267f0
add esp, 8
test eax, eax
je 0x42f2f1
mov dword [ebp - 0x4778], 1
jmp 0x42f2fb
mov dword [ebp - 0x4778], 0
push 0x5f4d74
lea ecx, [ebp - 0x554]
push ecx
call fcn.004267f0
add esp, 8
test eax, eax
je 0x42f31f
mov dword [ebp - 0x477c], 1
jmp 0x42f329
mov dword [ebp - 0x477c], 0
movzx edx, byte [ebp - 0x555]
mov eax, dword [ebp - 0x4778]
or eax, dword [ebp - 0x477c]
or edx, eax
mov byte [ebp - 0x555], dl
movzx eax, byte [ebp - 0x555]
test eax, eax
jne 0x42f368
lea eax, [ebp - 0x554]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x138
push ecx
call fcn.0042e2f0
add esp, 8
push 0
mov eax, dword [ebp - 0x30]
push eax
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0xffffffff
jne 0x42f39c
mov eax, 0x200
jmp 0x42f4ba
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434310
add esp, 4
mov byte [ebp - 0x4559], 0
push 0x4000
lea eax, [ebp - 0x4558]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.004347a0
add esp, 0xc
mov dword [ebp - 0x4560], eax
cmp dword [ebp - 0x4560], 0
jge 0x42f3e3
mov byte [ebp - 0x4559], 1
jmp 0x42f42c
cmp dword [ebp - 0x4560], 0
jne 0x42f3ee
jmp 0x42f42c
push 0
lea eax, [ebp - 0x4564]
push eax
mov ecx, dword [ebp - 0x4560]
push ecx
lea edx, [ebp - 0x4558]
push edx
mov eax, dword [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4568], eax
cmp dword [ebp - 0x4568], 0
jne 0x42f42a
mov byte [ebp - 0x4559], 1
jmp 0x42f42c
jmp 0x42f3b1
mov byte [ebp - 0x4569], 0
mov eax, dword [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0x4570], eax
cmp dword [ebp - 0x4570], 1
jne 0x42f461
movzx eax, byte [ebp - 0x4559]
test eax, eax
jne 0x42f461
mov byte [ebp - 0x4569], 1
movzx eax, byte [ebp - 0x4569]
test eax, eax
je 0x42f485
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x42f498
mov eax, dword [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434070
add esp, 4
movzx eax, byte [ebp - 0x4559]
test eax, eax
je 0x42f4b8
mov eax, 0x400
jmp 0x42f4ba
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret 0x10