Function at 0x46d997
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x580c3a
call fcn.0054f1d3
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0xc], esi
jne 0x46db9e
cmp dword [ebx + 8], esi
je 0x46db9e
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
or dword [ebx + 0x34], 0xffffffff
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
jmp 0x46db8c
mov eax, dword [ebx + 0x34]
cmp eax, 0xffffffff
je 0x46da60
cmp eax, esi
je 0x46dbb0
cmp eax, 1
je 0x46da5b
cmp eax, 2
je 0x46da30
cmp eax, 3
jne 0x46dba8
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x40], eax
lea esi, [eax + 1]
mov eax, dword [ebp + 0x10]
call fcn.00461d13
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x40]
mov edx, dword [eax]
mov byte [ecx + edx], 0
mov esi, dword [ebx + 0x40]
call fcn.00461d13
xor eax, eax
cmp dword [ebx + 0x40], eax
je 0x46da2c
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
xor esi, esi
jmp 0x46da6e
mov eax, dword [ebx + 0x30]
push dword [ebp - 0x1c]
mov dword [ebx + 0x40], eax
push dword [ebp - 0x20]
shr eax, 1
lea esi, [eax + 1]
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 0x20]
call fcn.0043bb51
mov eax, esi
mov ecx, edi
call fcn.0046e0d6
mov eax, dword [ebp - 0x20]
jmp 0x46da2c
lea eax, [ebx + 0x30]
jmp 0x46da67
mov eax, dword [ebp + 8]
or dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x40], 4
cmp byte [ebx + 0x2c], 0
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x44], esi
jne 0x46dba8
lea eax, [ebx + 0x40]
cmp dword [eax], esi
jle 0x46db15
cmp dword [ebx + 0x104c], esi
je 0x46dad8
mov ecx, dword [ebx + 0x104c]
cmp ecx, dword [eax]
jge 0x46daa1
lea eax, [ebx + 0x104c]
mov edi, dword [eax]
cmp edi, esi
jle 0x46db0b
mov eax, dword [ebx + 0x1048]
lea eax, [eax + ebx + 0x48]
push edi
push eax
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x3c]
push eax
call fcn.00543bc0
add dword [ebx + 0x1048], edi
sub dword [ebx + 0x104c], edi
add dword [ebx + 0x44], edi
sub dword [ebx + 0x40], edi
add esp, 0xc
xor esi, esi
jmp 0x46db0b
push dword [ebx + 8]
lea eax, [ebx + 0x48]
push 0x1000
push 1
push eax
call fcn.00546cb7
add esp, 0x10
cmp eax, esi
je 0x46dba8
cmp eax, 0xffffffff
je 0x46dba8
mov dword [ebx + 0x104c], eax
mov dword [ebx + 0x1048], esi
cmp byte [ebx + 0x2c], 0
je 0x46da7e
cmp byte [ebx + 0x2c], 0
jne 0x46dba8
mov eax, dword [ebx + 0x44]
add dword [ebx + 4], eax
mov eax, dword [ebx + 0x34]
cmp eax, 0xffffffff
je 0x46db54
cmp eax, 1
je 0x46db74
cmp eax, 2
je 0x46db3c
cmp eax, 3
jmp 0x46db72
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jne 0x46db49
mov eax, 0x5a3728
push eax
push dword [ebp + 0xc]
call fcn.00404c23
jmp 0x46db74
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
xor eax, eax
cmp ecx, dword [eax*4 + 0x5aa514]
je 0x46db6c
inc eax
cmp eax, 3
jl 0x46db5b
jmp 0x46db6f
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x46dba8
inc dword [ebx + 0x38]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
imul ecx, ecx, 5
add ecx, dword [ebx + 0x38]
mov eax, dword [ecx*4 + 0x5aa520]
mov dword [ebx + 0x34], eax
cmp byte [ebx + 0x2c], 0
je 0x46d9d4
lea esi, [ebp - 0x20]
call fcn.004265f2
xor al, al
call fcn.0054f2ab
ret 0x10
mov byte [ebx + 0x2c], 1
xor bl, bl
jmp 0x46dbba
inc dword [ebx]
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov bl, 1
lea esi, [ebp - 0x20]
call fcn.004265f2
mov al, bl
jmp 0x46dba0