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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x46d684
sub esp, 0x54
mov eax, dword [esp + 0x60]
movzx ecx, byte [eax + 0xf]
and ecx, 0x1f
cmp ecx, 0x14
jne 0x46d3db
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x28]
mov ebx, dword [esp + 0x6c]
cmp ebx, edx
jae 0x46d66a
mov dword [esp + 0x34], ecx
lea edx, [ecx + ebx*8]
mov edx, dword [edx]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00466270
mov eax, dword [esp + 8]
movzx eax, byte [eax]
test al, 1
je 0x46d5ee
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
test eax, eax
je 0x46d572
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x6c]
cmp edx, 0x186a0
jae 0x46d56b
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x34]
lea eax, [eax + edx*8 + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.004662b0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x30]
lea eax, [ecx + eax*4 + 0x14]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x54
ret
mov dword [esp], eax
call fcn.00466330
mov eax, dword [esp + 4]
test eax, eax
je 0x46d551
movzx ecx, word [eax + 4]
movzx edx, cx
mov ebx, dword [esp + 0x6c]
cmp ebx, edx
jae 0x46d551
mov edx, dword [eax + 8]
add eax, edx
test byte [eax], al
movzx ecx, cx
cmp ecx, 0x10000
ja 0x46d54a
cmp ebx, ecx
jae 0x46d543
shl ebx, 4
mov ecx, dword [eax + ebx + 4]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + ebx + 8]
mov dword [esp + 0x28], edx
mov eax, dword [eax + ebx]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00466270
mov eax, dword [esp + 8]
movzx eax, byte [eax]
test al, 1
je 0x46d4c7
lea eax, [0x5a5f00]
mov dword [esp], eax
call fcn.0040e6c0
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
call fcn.004662f0
mov eax, dword [0x7016d0]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x46d4b5
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call fcn.004662b0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x38]
jmp 0x46d3cb
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040ef10
jmp 0x46d490
mov dword [esp], 0
lea eax, [0x5dc6cc]
mov dword [esp + 4], eax
mov dword [esp + 8], 9
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [0x5dfbac]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x15
call fcn.0043bb40
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x5a5c80]
mov dword [esp], eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.0040bf70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00426ac0
ud2
call fcn.00425c90
ud2
call fcn.00425cf0
ud2
lea eax, [0x5a5c80]
mov dword [esp], eax
lea eax, [0x6089d0]
mov dword [esp + 4], eax
call fcn.00426ac0
ud2
call fcn.00425c90
ud2
mov dword [esp], 0
lea eax, [0x5dc6cc]
mov dword [esp + 4], eax
mov dword [esp + 8], 9
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [0x5e3f4d]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x21
call fcn.0043bb40
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea eax, [0x5a5c80]
mov dword [esp], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
call fcn.0040bf70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00426ac0
ud2
mov dword [esp], 0
lea eax, [0x5dc6cc]
mov dword [esp + 4], eax
mov dword [esp + 8], 9
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [0x5dfbac]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x15
call fcn.0043bb40
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea eax, [0x5a5c80]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.0040bf70
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00426ac0
ud2
lea eax, [0x5a5c80]
mov dword [esp], eax
lea eax, [0x6089c0]
mov dword [esp + 4], eax
call fcn.00426ac0
ud2
call fcn.0044a520
jmp fcn.0046d310