Function at 0x4214a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4274
call fcn.004433a0
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x4270], ecx
cmp dword [ebp + 0x14], 3
je 0x4214da
cmp dword [ebp + 0x14], 2
je 0x4214da
cmp dword [ebp + 0x14], 1
je 0x4214da
mov eax, 0x10000
jmp 0x421975
cmp dword [ebp + 0x14], 3
jne 0x421607
mov eax, dword [ebp - 0x4270]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x42159b
mov edx, dword [ebp - 0x4270]
cmp dword [edx + 4], 0xffffffff
je 0x421513
mov eax, dword [ebp - 0x4270]
mov ecx, dword [eax]
push ecx
call fcn.00420940
add esp, 4
mov edx, dword [ebp - 0x4270]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x4270]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x42153a
mov eax, 0x10000
jmp 0x421975
mov eax, dword [ebp - 0x4270]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x42155b
mov eax, dword [ebp - 0x4270]
mov ecx, dword [eax]
push ecx
call fcn.0041fe60
add esp, 4
mov edx, dword [ebp - 0x4270]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x42157e
mov edx, dword [ebp - 0x4270]
mov eax, dword [edx]
push eax
call fcn.0041fed0
add esp, 4
jmp 0x42155b
mov ecx, dword [ebp - 0x4270]
mov edx, dword [ecx]
push edx
call fcn.00420330
add esp, 4
mov eax, dword [ebp - 0x4270]
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 - 0x4270]
mov edx, dword [ecx]
push edx
call fcn.004204f0
add esp, 0xc
mov dword [ebp - 0x414c], eax
cmp dword [ebp - 0x414c], 0
jle 0x4215cd
mov eax, 0x600
jmp 0x421975
mov eax, dword [ebp - 0x4270]
mov ecx, dword [eax]
push ecx
call fcn.00420940
add esp, 4
mov edx, dword [ebp - 0x4270]
mov dword [edx + 4], 0xffffffff
cmp dword [ebp - 0x414c], 0
jne 0x4215fd
xor eax, eax
jmp 0x421975
mov eax, 0x5000000
jmp 0x421975
mov eax, dword [ebp - 0x4270]
cmp dword [eax + 4], 0xffffffff
je 0x421624
mov ecx, dword [ebp - 0x4270]
mov edx, dword [ecx]
push edx
call fcn.00420940
add esp, 4
mov eax, dword [ebp - 0x4270]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 0x4270]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 4]
jl 0x42164b
mov eax, 0x10000
jmp 0x421975
mov ecx, dword [ebp - 0x4270]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jge 0x42166c
mov ecx, dword [ebp - 0x4270]
mov edx, dword [ecx]
push edx
call fcn.0041fe60
add esp, 4
mov eax, dword [ebp - 0x4270]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x42168f
mov eax, dword [ebp - 0x4270]
mov ecx, dword [eax]
push ecx
call fcn.0041fed0
add esp, 4
jmp 0x42166c
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4270]
call fcn.00420c30
mov ecx, dword [ebp - 0x38]
and ecx, 0x10
je 0x4216dc
cmp dword [ebp + 0x14], 1
jne 0x4216ba
xor eax, eax
jmp 0x421975
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x4270]
add eax, 0x138
push eax
call fcn.00421380
add esp, 8
xor eax, eax
jmp 0x421975
cmp dword [ebp + 0x14], 1
jne 0x4216ed
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x421844
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x4150], edx
mov eax, dword [ebp - 0x4150]
mov dword [ebp - 0x4154], eax
mov ecx, dword [ebp - 0x4154]
movsx edx, byte [ecx]
test edx, edx
je 0x42174b
mov eax, dword [ebp - 0x4154]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x42172b
mov edx, dword [ebp - 0x4154]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x42173a
mov ecx, dword [ebp - 0x4154]
add ecx, 1
mov dword [ebp - 0x4150], ecx
mov edx, dword [ebp - 0x4154]
add edx, 1
mov dword [ebp - 0x4154], edx
jmp 0x421702
mov eax, dword [ebp - 0x4150]
cmp eax, dword [ebp + 0xc]
je 0x421826
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x4260]
push edx
call fcn.00443060
add esp, 8
mov eax, dword [ebp - 0x4150]
sub eax, dword [ebp + 0xc]
mov byte [ebp + eax - 0x4261], 0
movsx ecx, byte [ebp - 0x4260]
cmp ecx, 0x2f
je 0x4217ae
movsx edx, byte [ebp - 0x4260]
cmp edx, 0x5c
je 0x4217ae
movsx eax, byte [ebp - 0x425f]
cmp eax, 0x3a
je 0x4217ae
mov dword [ebp - 0x4274], 0
jmp 0x4217b8
mov dword [ebp - 0x4274], 1
mov ecx, dword [ebp - 0x4274]
mov dword [ebp - 0x4158], ecx
push 0x4676f0
lea edx, [ebp - 0x4260]
push edx
call fcn.00422210
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
push 0x4676f4
lea eax, [ebp - 0x4260]
push eax
call fcn.00422210
add esp, 8
neg eax
sbb eax, eax
neg eax
or esi, eax
or esi, dword [ebp - 0x4158]
mov dword [ebp - 0x4158], esi
jne 0x421826
lea ecx, [ebp - 0x4260]
push ecx
mov edx, dword [ebp - 0x4270]
add edx, 0x138
push edx
call fcn.00421380
add esp, 8
push 0
mov eax, dword [ebp - 0x38]
push eax
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x421854
mov eax, 0x200
jmp 0x421975
mov edx, dword [ebp - 0x4270]
mov eax, dword [edx]
push eax
call fcn.00420330
add esp, 4
mov dword [ebp - 0x148], 0
push 0x4000
lea ecx, [ebp - 0x4148]
push ecx
mov edx, dword [ebp - 0x4270]
mov eax, dword [edx]
push eax
call fcn.004204f0
add esp, 0xc
mov dword [ebp - 0x4264], eax
cmp dword [ebp - 0x4264], 0
jge 0x4218a7
mov dword [ebp - 0x148], 1
jmp 0x4218f3
cmp dword [ebp - 0x4264], 0
jne 0x4218b2
jmp 0x4218f3
push 0
lea ecx, [ebp - 0x426c]
push ecx
mov edx, dword [ebp - 0x4264]
push edx
lea eax, [ebp - 0x4148]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4268], eax
cmp dword [ebp - 0x4268], 0
jne 0x4218ee
mov dword [ebp - 0x148], 1
jmp 0x4218f3
jmp 0x42186f
mov dword [ebp - 0x144], 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x421923
cmp dword [ebp - 0x148], 0
jne 0x421923
mov dword [ebp - 0x144], 1
cmp dword [ebp - 0x144], 0
je 0x421942
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 0x421952
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4270]
mov eax, dword [edx]
push eax
call fcn.00420940
add esp, 4
cmp dword [ebp - 0x148], 0
je 0x421973
mov eax, 0x400
jmp 0x421975
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret 0x10