Function at 0x42ee00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x477c
call fcn.0059e8e0
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x682515
call fcn.0059e74b
cmp dword [ebp + 0x14], 3
je 0x42ee43
cmp dword [ebp + 0x14], 2
je 0x42ee43
cmp dword [ebp + 0x14], 1
je 0x42ee43
mov eax, 0x10000
jmp 0x42f32a
cmp dword [ebp + 0x14], 3
jne 0x42ef3d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x42eee3
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x42ee73
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00433ef0
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 0x42ee94
mov eax, 0x10000
jmp 0x42f32a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x42eeaf
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434020
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x42eecc
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.004340b0
add esp, 4
jmp 0x42eeaf
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434190
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.00434620
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x42ef0c
mov eax, 0x600
jmp 0x42f32a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00433ef0
add esp, 4
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
cmp dword [ebp - 0xc], 0
jne 0x42ef33
xor eax, eax
jmp 0x42f32a
mov eax, 0x5000000
jmp 0x42f32a
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x42ef54
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00433ef0
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 0x42ef75
mov eax, 0x10000
jmp 0x42f32a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x42ef90
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434020
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x42efad
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.004340b0
add esp, 4
jmp 0x42ef90
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0042e2a0
mov eax, dword [ebp - 0x30]
and eax, 0x10
je 0x42f010
cmp dword [ebp + 0x14], 1
jne 0x42efd5
xor eax, eax
jmp 0x42f32a
push 0x103
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x134]
push ecx
call fcn.0042eb30
add esp, 0xc
lea eax, [ebp - 0x340]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x138
push ecx
call fcn.0042e160
add esp, 8
xor eax, eax
jmp 0x42f32a
cmp dword [ebp + 0x14], 1
jne 0x42f024
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x344], eax
jmp 0x42f1f9
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 0x42f082
mov eax, dword [ebp - 0x34c]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x42f062
mov eax, dword [ebp - 0x34c]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x42f071
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 0x42f039
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp + 0xc]
je 0x42f1d8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x554]
push ecx
call fcn.005ad901
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 0x42f0c7
jmp 0x42f0cc
call fcn.0059e671
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 0x42f127
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x554]
cmp edx, 0x5c
je 0x42f127
mov eax, 2
shl eax, 0
movzx ecx, word [ebp + eax - 0x554]
cmp ecx, 0x3a
je 0x42f127
mov dword [ebp - 0x4778], 0
jmp 0x42f131
mov dword [ebp - 0x4778], 1
mov dl, byte [ebp - 0x4778]
mov byte [ebp - 0x555], dl
push 0x5f4d74
lea eax, [ebp - 0x554]
push eax
call fcn.004267a0
add esp, 8
test eax, eax
je 0x42f161
mov dword [ebp - 0x4778], 1
jmp 0x42f16b
mov dword [ebp - 0x4778], 0
push 0x5f4d7c
lea ecx, [ebp - 0x554]
push ecx
call fcn.004267a0
add esp, 8
test eax, eax
je 0x42f18f
mov dword [ebp - 0x477c], 1
jmp 0x42f199
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 0x42f1d8
lea eax, [ebp - 0x554]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x138
push ecx
call fcn.0042e160
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 0x42f20c
mov eax, 0x200
jmp 0x42f32a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00434190
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.00434620
add esp, 0xc
mov dword [ebp - 0x4560], eax
cmp dword [ebp - 0x4560], 0
jge 0x42f253
mov byte [ebp - 0x4559], 1
jmp 0x42f29c
cmp dword [ebp - 0x4560], 0
jne 0x42f25e
jmp 0x42f29c
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 0x42f29a
mov byte [ebp - 0x4559], 1
jmp 0x42f29c
jmp 0x42f221
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 0x42f2d1
movzx eax, byte [ebp - 0x4559]
test eax, eax
jne 0x42f2d1
mov byte [ebp - 0x4569], 1
movzx eax, byte [ebp - 0x4569]
test eax, eax
je 0x42f2f5
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 0x42f308
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.00433ef0
add esp, 4
movzx eax, byte [ebp - 0x4559]
test eax, eax
je 0x42f328
mov eax, 0x400
jmp 0x42f32a
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret 0x10