Function at 0x46a2c8
Capabilities:
Write file on windows

Disassembly:
mov dword [ebp + 0x3c], eax
mov dword [ebp - 4], esi
call 0x4fc437
add esp, 0xc
cmp dword [ebp + 0x14], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp + 0x6f], bl
jl 0x46a2af
jg 0x46a256
cmp dword [ebp + 0x10], ebx
jbe 0x46a2af
mov edi, dword [ebp + 0x3c]
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x30]
mov dword [ebp - 0x20], ebx
push edi
cmp dword [ebp - 0x30], ebx
jl 0x46a32a
jg 0x46a2bb
cmp dword [ebp - 0x34], ebx
jbe 0x46a32a
push 1
push ebx
push ebx
push dword [ebp + 0x68]
call fcn.004a274e
add esp, 0x10
les edx, [eax]
push ebx
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x7c], edx
push esi
push dword [ebp + 0x68]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [0x4a64e8]
adc eax, 0x4a64e8
push dword [ebp + 0x60]
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp - 0x34]
push eax
add ecx, eax
push ecx
call fcn.0047bf61
push dword [ebp - 0x34]
push esi
push dword [ebp + 0x3c]
call fcn.0047bf6d
mov eax, dword [ebp - 0x34]
add dword [ebp + 0x60], eax
mov eax, dword [ebp - 0x30]
push ebx
push dword [ebp - 0x7c]
adc dword [ebp + 0x64], eax
push edi
push dword [ebp + 0x68]
call fcn.004a27a5
add esp, 0x28
cmp byte [ebp + 0x22], bl
je 0x46a32a
mov byte [ebp + 0x6f], 1
cmp dword [ebp + 0x64], ebx
mov byte [ebp + 0x5e], 1
jg 0x46a4dc
jl 0x46a342
cmp dword [ebp + 0x60], ebx
ja 0x46a4dc
mov eax, dword [ebp + 0x50]
cmp eax, ebx
jl 0x46a4e7
jg 0x46a358
cmp dword [ebp + 0x4c], ebx
jbe 0x46a4e7
cmp byte [ebp + 0x5e], bl
je 0x46a4e7
cmp byte [ebp + 0x6e], bl
je 0x46a477
mov esi, dword [ebp - 0x54]
cmp esi, eax
jg 0x46a380
jl 0x46a37b
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp + 0x4c]
ja 0x46a380
mov ecx, dword [ebp - 0x58]
jmp 0x46a385
mov ecx, dword [ebp + 0x4c]
mov esi, eax
mov edx, ecx
add edx, dword [ebp + 0x60]
mov eax, esi
adc eax, dword [ebp + 0x64]
cmp eax, dword [ebp + 4]
jl 0x46a3a7
jg 0x46a39b
cmp edx, dword [ebp]
jbe 0x46a3a7
mov ecx, dword [ebp]
sub ecx, dword [ebp + 0x60]
mov esi, dword [ebp + 4]
sbb esi, dword [ebp + 0x64]
cmp dword [ebp - 0x14], ebx
jle 0x46a3cd
mov eax, dword [ebp + 0x30]
cdq
mov edi, eax
mov eax, dword [ebp + 0x30]
add edi, ecx
mov dword [ebp - 0x70], edx
adc dword [ebp - 0x70], esi
dec eax
not eax
cdq
and edi, eax
mov eax, dword [ebp - 0x70]
and eax, edx
mov dword [ebp - 0x44], eax
jmp 0x46a3d2
mov edi, ecx
mov dword [ebp - 0x44], esi
cmp byte [ebp + 0x5f], bl
mov dword [ebp - 0x48], edi
je 0x46a42d
mov esi, dword [ebp - 0x50]
sub esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x4c]
sbb edi, dword [ebp - 0x3c]
cmp edi, dword [ebp - 0x44]
jl 0x46a3f8
jg 0x46a3f2
cmp esi, dword [ebp - 0x48]
jbe 0x46a3f8
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
cmp dword [ebp - 0x44], ebx
jl 0x46a41f
jg 0x46a404
cmp dword [ebp - 0x48], ebx
jbe 0x46a41f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x40]
add ecx, eax
mov eax, dword [ebp + 0x60]
push esi
push ecx
mov ecx, dword [ebp + 0x3c]
add eax, ecx
push eax
call fcn.0047c084
add esp, 0xc
add dword [ebp - 0x40], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp + 0x3c]
push ebx
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x60]
push edi
add eax, ecx
push eax
push dword [ebp + 0x24]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [0x4a64e8]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
cmp edi, ebx
jl 0x46a4e7
jg 0x46a463
cmp esi, ebx
jbe 0x46a4e7
cmp edi, dword [ebp + 0x50]
jl 0x46a4c1
jg 0x46a46f
cmp esi, dword [ebp + 0x4c]
jbe 0x46a4c1
mov esi, dword [ebp + 0x4c]
mov edi, dword [ebp + 0x50]
jmp fcn.0046a4bb
cmp dword [ebp + 0x44], eax
jg 0x46a48e
jl 0x46a486
mov ecx, dword [ebp + 0x40]
cmp ecx, dword [ebp + 0x4c]
ja 0x46a48e
mov esi, dword [ebp + 0x40]
mov edi, dword [ebp + 0x44]
jmp 0x46a493
mov esi, dword [ebp + 0x4c]
mov edi, eax
mov ecx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x64]
add ecx, esi
adc eax, edi
cmp eax, dword [ebp + 4]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
jl 0x46a4c1
jg 0x46a4af
cmp ecx, dword [ebp]
jbe 0x46a4c1
mov esi, dword [ebp]
sub esi, dword [ebp + 0x60]
mov edi, dword [ebp + 4]
sbb edi, dword [ebp + 0x64]
cmp dword [ebp + 0x4c], 0xffffffff
jne 0x46a4d0
cmp dword [ebp + 0x50], 0x7fffffff
je 0x46a4d6
sub dword [ebp + 0x4c], esi
sbb dword [ebp + 0x50], edi
add dword [ebp + 0x60], esi
adc dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x30], eax
jmp 0x46a7e2
cmp dword [ebp + 0x64], ebx
jl 0x46a837
jg 0x46a4fb
cmp dword [ebp + 0x60], ebx
jbe 0x46a837
mov eax, dword [ebp + 0x3c]
mov byte [ebp + 0x5e], bl
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x44]
cmp eax, ecx
jg 0x46a523
jl 0x46a518
mov edx, dword [ebp + 0x40]
cmp edx, dword [ebp + 0x60]
ja 0x46a523
mov ecx, dword [ebp + 0x40]
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x38], eax
jmp 0x46a52c
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], ecx
cmp dword [ebp - 0x24], ebx
mov dword [ebp + 0x1c], ebx
jle 0x46a54d
mov eax, dword [ebp - 0x28]
cdq
push edx
push eax
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov edi, dword [ebp + 0x34]
sub edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x38]
sbb esi, dword [ebp + 0x14]
mov dword [ebp - 0x80], edi
js 0x46a5f4
invalid
pop ebp