Function at 0x46e0a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x467c
call fcn.0049ec70
mov eax, dword [0x4fb770]
mov dword [ebp - 8], eax
push ebx
push esi
mov dword [ebp - 0x4678], ecx
cmp dword [ebp + 0x14], 3
je 0x46e0d9
cmp dword [ebp + 0x14], 2
je 0x46e0d9
cmp dword [ebp + 0x14], 1
je 0x46e0d9
mov eax, 0x10000
jmp 0x46e5fc
cmp dword [ebp + 0x14], 3
jne 0x46e224
mov eax, dword [ebp - 0x4678]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x46e1a7
mov edx, dword [ebp - 0x4678]
cmp dword [edx + 4], 0xffffffff
je 0x46e112
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.0046d540
add esp, 4
mov edx, dword [ebp - 0x4678]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x46e139
mov eax, 0x10000
jmp 0x46e5fc
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x46e15a
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.0046cb20
add esp, 4
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x46e17d
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
push eax
call fcn.0046cb90
add esp, 4
jmp 0x46e15a
mov ecx, dword [ebp - 0x4678]
mov edx, dword [ecx + 0x23c]
push edx
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.0046ced0
add esp, 8
mov edx, dword [ebp - 0x4678]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.0046d160
add esp, 0xc
mov dword [ebp - 0x4244], eax
cmp dword [ebp - 0x4244], 0
jle 0x46e1d9
mov eax, 0x600
jmp 0x46e5fc
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
push eax
call fcn.0046d540
add esp, 4
mov ecx, dword [ebp - 0x4678]
mov dword [ecx + 4], 0xffffffff
cmp dword [ebp - 0x4244], 0
jne 0x46e207
xor eax, eax
jmp 0x46e5fc
cmp dword [ebp - 0x4244], 0xffffff96
jne 0x46e21a
mov eax, 0x1000
jmp 0x46e5fc
mov eax, 0x5000000
jmp 0x46e5fc
mov edx, dword [ebp - 0x4678]
cmp dword [edx + 4], 0xffffffff
je 0x46e241
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.0046d540
add esp, 4
mov edx, dword [ebp - 0x4678]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x46e268
mov eax, 0x10000
jmp 0x46e5fc
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x46e289
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.0046cb20
add esp, 4
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x46e2ac
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
push eax
call fcn.0046cb90
add esp, 4
jmp 0x46e289
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x4678]
call fcn.0046d870
mov eax, dword [ebp - 0x2c]
and eax, 0x10
je 0x46e2fa
cmp dword [ebp + 0x14], 1
jne 0x46e2d7
xor eax, eax
jmp 0x46e5fc
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x4678]
add edx, 0x240
push edx
call fcn.0046df80
add esp, 8
xor eax, eax
jmp 0x46e5fc
cmp dword [ebp + 0x14], 1
jne 0x46e30b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x46e4cb
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4248], ecx
mov edx, dword [ebp - 0x4678]
add edx, 0x240
push edx
lea eax, [ebp - 0x4458]
push eax
call fcn.0049d5a4
add esp, 8
mov ecx, dword [ebp - 0x4248]
push ecx
lea edx, [ebp - 0x4458]
push edx
call fcn.0049d57a
add esp, 8
lea eax, [ebp - 0x4458]
mov dword [ebp - 0x424c], eax
mov ecx, dword [ebp - 0x424c]
mov dword [ebp - 0x445c], ecx
mov edx, dword [ebp - 0x445c]
movzx eax, word [edx]
test eax, eax
je 0x46e3a7
mov ecx, dword [ebp - 0x445c]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x46e387
mov eax, dword [ebp - 0x445c]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x46e396
mov edx, dword [ebp - 0x445c]
add edx, 2
mov dword [ebp - 0x424c], edx
mov eax, dword [ebp - 0x445c]
add eax, 2
mov dword [ebp - 0x445c], eax
jmp 0x46e35e
mov ecx, dword [ebp - 0x424c]
lea edx, [ebp - 0x4458]
cmp ecx, edx
je 0x46e4aa
lea eax, [ebp - 0x4458]
push eax
lea ecx, [ebp - 0x4668]
push ecx
call fcn.0049d5a4
add esp, 8
mov edx, dword [ebp - 0x424c]
lea eax, [ebp - 0x4458]
sub edx, eax
sar edx, 1
mov word [ebp + edx*2 - 0x466a], 0
movzx ecx, word [ebp - 0x4668]
test ecx, ecx
je 0x46e426
movzx edx, word [ebp - 0x4668]
cmp edx, 0x2f
je 0x46e426
movzx eax, word [ebp - 0x4668]
cmp eax, 0x5c
je 0x46e426
movzx ecx, word [ebp - 0x4666]
cmp ecx, 0x3a
je 0x46e426
mov dword [ebp - 0x467c], 0
jmp 0x46e430
mov dword [ebp - 0x467c], 1
mov dl, byte [ebp - 0x467c]
mov byte [ebp - 0x445d], dl
movzx ebx, byte [ebp - 0x445d]
push 0x4db210
lea eax, [ebp - 0x4668]
push eax
call fcn.0049ecad
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
push 0x4db208
lea ecx, [ebp - 0x4668]
push ecx
call fcn.0049ecad
add esp, 8
neg eax
sbb eax, eax
neg eax
or esi, eax
or ebx, esi
mov byte [ebp - 0x445d], bl
movzx edx, byte [ebp - 0x445d]
test edx, edx
jne 0x46e4aa
lea eax, [ebp - 0x4668]
push eax
mov ecx, dword [ebp - 0x4678]
add ecx, 0x240
push ecx
call fcn.0046df80
add esp, 8
push 0
mov edx, dword [ebp - 0x2c]
push edx
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x4458]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x46e4db
mov eax, 0x200
jmp 0x46e5fc
mov ecx, dword [ebp - 0x4678]
mov edx, dword [ecx + 0x23c]
push edx
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.0046ced0
add esp, 8
mov dword [ebp - 0x23c], 0
cmp dword [ebp - 0x23c], 0
jne 0x46e5a9
push 0x4000
lea edx, [ebp - 0x4240]
push edx
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.0046d160
add esp, 0xc
mov dword [ebp - 0x466c], eax
cmp dword [ebp - 0x466c], 0xffffff96
jne 0x46e548
mov dword [ebp - 0x23c], 0x1000
jmp 0x46e5a9
cmp dword [ebp - 0x466c], 0
jge 0x46e55d
mov dword [ebp - 0x23c], 0x5000000
jmp 0x46e5a9
cmp dword [ebp - 0x466c], 0
jne 0x46e568
jmp 0x46e5a9
push 0
lea edx, [ebp - 0x4674]
push edx
mov eax, dword [ebp - 0x466c]
push eax
lea ecx, [ebp - 0x4240]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4670], eax
cmp dword [ebp - 0x4670], 0
jne 0x46e5a4
mov dword [ebp - 0x23c], 0x400
jmp 0x46e5a9
jmp 0x46e503
cmp dword [ebp - 0x23c], 0
jne 0x46e5c8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x46e5d8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
push eax
call fcn.0046d540
add esp, 4
cmp dword [ebp - 0x23c], 0
je 0x46e5fa
mov eax, dword [ebp - 0x23c]
jmp 0x46e5fc
xor eax, eax
mov ecx, dword [ebp - 8]
call fcn.0049d184
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10