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

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
xor eax, eax
push ebx
push ebp
mov dword [esp + 0x10], eax
xor edx, edx
mov ebp, dword [ecx + 0x10]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0x94]
div dword [ebp + 0x98]
or byte [ebp + 0x14], 4
mov ecx, dword [ecx + 0x14]
mov edx, eax
mov esi, dword [ebp + 0x18]
lea edi, [edx - 1]
not edi
lea eax, [ecx - 1]
and edi, eax
inc edi
mov dword [esp + 0x24], edi
cmp ecx, esi
jbe 0x46c4a0
sub ecx, edi
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x46c4ba
lea eax, [edx - 1]
add eax, edi
cmp eax, esi
jbe 0x46c4b4
mov ecx, esi
sub ecx, edi
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x46c4ba
mov ecx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ebx
test ecx, ecx
jle 0x46c672
mov esi, edi
test ebx, ebx
jne 0x46c672
mov eax, dword [esp + 0x2c]
cmp esi, dword [eax + 0x14]
je 0x46c51a
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x46c51a
push esi
push eax
call fcn.00479530
add esp, 8
test eax, eax
je 0x46c516
push esi
push ebp
call fcn.00493d60
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x46c572
test byte [eax + 0x18], 8
je 0x46c50e
mov dword [esp + 0x18], 1
push eax
call fcn.00494f30
jmp 0x46c56f
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4e2564]
cdq
idiv dword [ebp + 0x98]
inc eax
cmp esi, eax
je 0x46c576
push 0
lea eax, [esp + 0x20]
push eax
push esi
push ebp
call fcn.004932f0
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x46c572
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.0046d660
add esp, 4
mov dword [esp + 0x14], eax
test byte [ebx + 0x18], 8
je 0x46c565
mov dword [esp + 0x18], 1
push ebx
call fcn.00494f30
mov ebx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
inc esi
inc eax
mov dword [esp + 0x20], eax
cmp eax, ecx
jl 0x46c4c8
test ebx, ebx
jne 0x46c672
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46c672
lea esp, [esp]
mov eax, dword [ebp + 0xcc]
push 0
push edi
push dword [eax + 0x28]
call dword [0x4e25ec]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x46c65f
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 0xcc]
cmp dword [eax], 0
jne 0x46c5da
push ecx
push edi
push edx
call fcn.0046f290
add esp, 0xc
jmp 0x46c5e9
xor ecx, ecx
cmp cx, word [eax + 0x1a]
jne 0x46c5e5
inc dword [edx + 0xc]
inc word [eax + 0x1a]
test eax, eax
je 0x46c65f
or word [eax + 0x18], 8
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x46c63b
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004023b0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x34]
add esp, 0x10
jmp 0x46c644
push eax
call fcn.00495d80
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x46c65f
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x46c65f
push ebx
call fcn.0046c2c0
add esp, 4
inc edi
dec dword [esp + 0x10]
mov dword [esp + 0x24], edi
jne 0x46c5a0
mov ebx, dword [esp + 0x14]
and byte [ebp + 0x14], 0xfb
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret