Function at 0x46aa70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov dword [esp + 0x10], 0xc
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x46aaaa
push eax
push 0x507e8c
push esi
call fcn.00449870
add esp, 0xc
push 0x10
push 0x507e90
push esi
call fcn.00449900
mov ebx, dword [esp + 0x90]
add esp, 0xc
mov edi, dword [esp + 0x8c]
nop dword [eax + eax]
lea eax, [esp + 0x8c]
mov ebp, edi
push eax
push edi
push ebx
call fcn.0046a150
add esp, 0xc
test eax, eax
je 0x46acb9
sub eax, dword [ebx + 0x1c]
inc edi
mov ecx, dword [esp + 0x8c]
sar eax, 3
shl ecx, 0x10
add eax, ecx
mov dword [esp + 0x78], eax
cmp edi, dword [esp + 0x10]
jle 0x46abc7
lea eax, [esp + 0x88]
add edi, 0xa
push eax
push edi
push ebx
call fcn.0046a150
add esp, 0xc
test eax, eax
je 0x46abad
sub eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x88]
push 5
sar eax, 3
shl ecx, 0x10
add eax, ecx
push 0x507ea4
push esi
mov dword [esp + 0x84], eax
call fcn.00449900
lea eax, [esp + 0x8c]
push eax
push 0xfffffffffffffff6
push ebx
call fcn.0046a150
add esp, 0x18
test eax, eax
je 0x46ab8d
sub eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x80]
sar eax, 3
shl ecx, 0x10
add eax, ecx
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x78], eax
lea edi, [eax - 0xa]
jmp 0x46aad0
mov eax, 0xfffffff6
mov dword [esp + 0x10], 0x7fffffff
sub eax, dword [esp + 0x80]
mov dword [esp + 0x78], eax
lea edi, [eax - 0xa]
jmp 0x46aad0
sub edi, dword [esp + 0x88]
mov dword [esp + 0x78], edi
mov edi, ebp
mov dword [esp + 0x10], 0x7fffffff
jmp 0x46aad0
push 0
lea eax, [esp + 0x1c]
push eax
push 0x507eac
push ebx
call fcn.0046a290
mov eax, dword [ebx + 0x14]
add esp, 0x10
add eax, 0xfffffff8
mov ebp, dword [eax]
mov dword [ebx + 0x14], eax
mov cl, byte [ebp + 6]
cmp cl, 1
jbe 0x46ac02
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x46ac02
mov eax, 0x507eb4
movzx ecx, cl
jmp 0x46ac0b
mov eax, 0x507ec4
lea ecx, [esp + 0x3c]
push ecx
push eax
push esi
call fcn.00449870
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jle 0x46ac2d
push eax
push 0x507ecc
push esi
call fcn.00449870
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
je 0x46ac4a
push dword [esp + 0x1c]
push 0x507ed0
push esi
call fcn.00449870
add esp, 0xc
jmp 0x46ac94
mov eax, dword [esp + 0x24]
mov al, byte [eax]
cmp al, 0x6d
jne 0x46ac66
push 0xe
push 0x507ee4
push esi
call fcn.00449900
add esp, 0xc
jmp 0x46ac94
cmp al, 0x43
jne 0x46ac7d
push dword [ebp + 0x14]
push 0x507ef4
push esi
call fcn.00449870
add esp, 0xc
jmp 0x46ac94
push dword [esp + 0x34]
lea eax, [esp + 0x40]
push eax
push 0x507efc
push esi
call fcn.00449870
add esp, 0x10
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 3
sub eax, dword [esp + 0x14]
cmp eax, 0xf
jl 0x46aad0
push eax
push esi
call fcn.00448de0
add esp, 8
jmp 0x46aad0
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sub edi, dword [esp + 0x8c]
sar eax, 3
sub eax, dword [esp + 0x14]
push eax
push esi
mov dword [esp + 0x80], edi
call fcn.00448de0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret