Function at 0x46e801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
cmp dword [0x4b205c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
jne 0x46e829
cmp dword [0x4b2058], 0
jne 0x46e829
xor al, al
jmp 0x46ebc5
push ecx
lea ecx, [ebp - 0x38]
call fcn.004070d5
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x100]
cmovae eax, dword [ebp - 0x38]
movzx eax, word [eax]
push eax
call fcn.0046da18
cmp dword [ebp - 0xdc], 0
jne 0x46e85f
xor ebx, ebx
mov byte [ebp - 1], bl
jmp 0x46ebac
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.0046d1dd
xor ebx, ebx
mov dword [ebp - 0x248], 0x303
push ebx
push 5
lea ecx, [ebp - 0x2a0]
call fcn.0046d648
test eax, eax
je 0x46eb9e
lea ecx, [ebp - 0x2a0]
call fcn.0046d7f7
test eax, eax
je 0x46eb9e
push ecx
lea ecx, [ebp - 0x54]
call fcn.0046ca55
xor esi, esi
mov dword [ebp - 0x54], 0x4a7748
inc esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], ebx
call fcn.0046cb21
push 0x5c
pop edi
push esi
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0040c298
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x38]
push esi
inc eax
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040c298
mov edi, eax
or esi, 0xffffffff
jmp 0x46e9a6
mov ecx, dword [ebp - 8]
mov eax, edi
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x38]
call fcn.00410815
cmp dword [ebp - 0x70], 8
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push ecx
push eax
lea ecx, [ebp - 0x2a0]
call fcn.0046d8ec
test eax, eax
je 0x46ea02
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x46e94e
mov ecx, dword [eax]
movzx eax, word [eax + 4]
jmp 0x46e952
mov ecx, esi
mov eax, esi
push eax
push ecx
lea ecx, [ebp - 0x2a0]
call fcn.0046d648
test eax, eax
je 0x46ea02
lea ecx, [ebp - 0x2a0]
call fcn.0046d7f7
test eax, eax
je 0x46ea02
push 1
lea eax, [edi + 1]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x5c
push eax
lea ecx, [ebp - 0x38]
call fcn.0040c298
push ebx
push 1
lea ecx, [ebp - 0x84]
mov edi, eax
call fcn.0040719c
cmp edi, esi
jne 0x46e8fa
xor eax, eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 8]
push esi
inc eax
mov dword [ebp - 0x5c], ebx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040760b
cmp dword [ebp - 0x58], 8
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push ecx
push eax
lea ecx, [ebp - 0x2a0]
call fcn.0046d8ec
test eax, eax
je 0x46eafd
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x46ea18
mov esi, dword [eax]
movzx eax, word [eax + 4]
jmp 0x46ea1a
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.0040719c
mov byte [ebp - 1], bl
jmp 0x46eb0b
mov eax, esi
push eax
push esi
lea ecx, [ebp - 0x2a0]
call fcn.0046d648
test eax, eax
je 0x46eafd
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x248], 0x83
call fcn.0046d7f7
test eax, eax
je 0x46eafd
push 0x100000
call fcn.0046f629
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x14], eax
call fcn.0046d9db
mov edi, eax
test edi, edi
je 0x46eb89
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 8]
mov esi, eax
cmp esi, 0x100000
jae 0x46eadc
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
mov ecx, edi
movlpd qword [ebp - 0x20], xmm0
call dword [eax + 0xc]
test eax, eax
je 0x46eafd
cmp dword [ebp - 0x18], esi
jne 0x46eafd
push 0x4a78bc
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.0047a119
add esp, 0xc
push dword [ebp - 8]
test eax, eax
jne 0x46eaf7
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0047650f
push dword [ebp - 8]
call fcn.00475ceb
add esp, 0x14
jmp 0x46eb89
push 0x4a78bc
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.0047a119
add esp, 0xc
test eax, eax
je 0x46eb18
push dword [ebp - 8]
call fcn.00475ceb
pop ecx
mov byte [ebp - 1], bl
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0040719c
lea ecx, [ebp - 0x54]
call fcn.0046ce0f
jmp 0x46eba1
mov ecx, 0x100000
mov dword [ebp - 0xc], ebx
mov edx, ebx
mov dword [ebp - 0x10], ecx
jmp 0x46eb7c
mov eax, edx
cdq
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x18]
push edx
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
je 0x46eaf4
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jne 0x46eaf4
push dword [ebp - 8]
push 1
push eax
push dword [ebp - 0x14]
call fcn.0047650f
mov edx, dword [ebp - 0xc]
mov ecx, 0x100000
sub esi, ecx
add edx, ecx
add esp, 0x10
mov dword [ebp - 0xc], edx
cmp esi, ecx
mov eax, esi
cmovge eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0x10], eax
test esi, esi
jg 0x46eb27
push dword [ebp - 8]
call fcn.00475ceb
pop ecx
push 1
push dword [ebp - 0x14]
call main
pop ecx
pop ecx
mov byte [ebp - 1], 1
jmp 0x46eb00
mov byte [ebp - 1], bl
lea ecx, [ebp - 0x2a0]
call fcn.0046d258
lea ecx, [ebp - 0x100]
call fcn.0046db72
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0040719c
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret