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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4918b4
sub esp, 0x54
mov eax, dword [esp + 0x60]
movzx ecx, byte [eax + 0xf]
and ecx, 0x1f
cmp ecx, 0x14
jne 0x49160b
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x28]
mov ebx, dword [esp + 0x6c]
cmp ebx, edx
jae 0x49189a
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.0048a4a0
mov eax, dword [esp + 8]
movzx eax, byte [eax]
test al, 1
je 0x49181e
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
test eax, eax
je 0x4917a2
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x6c]
cmp edx, 0x186a0
jae 0x49179b
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.0048a4e0
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.0048a560
mov eax, dword [esp + 4]
test eax, eax
je 0x491781
movzx ecx, word [eax + 4]
movzx edx, cx
mov ebx, dword [esp + 0x6c]
cmp ebx, edx
jae 0x491781
mov edx, dword [eax + 8]
add eax, edx
test byte [eax], al
movzx ecx, cx
cmp ecx, 0x10000
ja 0x49177a
cmp ebx, ecx
jae 0x491773
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.0048a4a0
mov eax, dword [esp + 8]
movzx eax, byte [eax]
test al, 1
je 0x4916f7
lea eax, [0x5be3e0]
mov dword [esp], eax
call fcn.0040e440
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.0048a520
mov eax, dword [0x728500]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x4916e5
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.0048a4e0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x38]
jmp 0x4915fb
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040ec50
jmp 0x4916c0
mov dword [esp], 0
lea eax, [0x5f77bd]
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, [0x5fad45]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x15
call fcn.0043b610
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x5be160]
mov dword [esp], eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.0040bcf0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00426730
ud2
call fcn.00425900
ud2
call fcn.00425960
ud2
lea eax, [0x5be160]
mov dword [esp], eax
lea eax, [0x6254e8]
mov dword [esp + 4], eax
call fcn.00426730
ud2
call fcn.00425900
ud2
mov dword [esp], 0
lea eax, [0x5f77bd]
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, [0x5ff1d6]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x21
call fcn.0043b610
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea eax, [0x5be160]
mov dword [esp], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
call fcn.0040bcf0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00426730
ud2
mov dword [esp], 0
lea eax, [0x5f77bd]
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, [0x5fad45]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x15
call fcn.0043b610
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea eax, [0x5be160]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.0040bcf0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00426730
ud2
lea eax, [0x5be160]
mov dword [esp], eax
lea eax, [0x6254d8]
mov dword [esp + 4], eax
call fcn.00426730
ud2
call fcn.0044a1d0
jmp fcn.00491540