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

Disassembly:
mov ecx, dword [0xe11d80]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x499b41
sub esp, 0x5c
mov eax, dword [esp + 0x68]
mov ecx, eax
and eax, 0x1f
mov dword [esp + 0x38], eax
nop
cmp eax, 0x11
je 0x4997d6
cmp eax, 0x17
jne 0x499b06
cmp eax, 0x11
jne 0x4997f9
nop
test ecx, 0x60
jne 0x4997e9
test ecx, 0x100
jne 0x4997f9
mov dword [esp], ecx
call fcn.00492f60
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
nop
test ecx, ecx
je 0x499806
test ecx, 0x60
je 0x499816
mov dword [esp], ecx
call fcn.00492e50
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x74]
mov ebx, edx
and edx, 0x1f
mov dword [esp + 0x34], edx
nop
cmp edx, 0x11
je 0x49989b
cmp edx, 0x17
je 0x49989b
cmp edx, 0x18
jne 0x49988a
mov ebp, dword [esp + 0x60]
movzx esi, byte [ebp + 0xf]
and esi, 0x1f
cmp esi, 0x12
ja 0x499857
cmp esi, 0x11
jne 0x49984d
mov esi, dword [ebp + 0x20]
jmp 0x499877
cmp esi, 0x12
jne 0x499875
mov esi, dword [ebp + 0x20]
jmp 0x499877
cmp esi, 0x15
jne 0x499861
mov esi, dword [ebp + 0x24]
jmp 0x499877
cmp esi, 0x16
jne 0x49986b
mov esi, dword [ebp + 0x20]
jmp 0x499877
cmp esi, 0x17
jne 0x499875
mov esi, dword [ebp + 0x20]
jmp 0x499877
xor esi, esi
movzx esi, byte [esi + 0xf]
and esi, 0x1f
cmp esi, 8
xchg esi, ebx
sete bl
xchg esi, ebx
jmp 0x499890
mov ebp, dword [esp + 0x60]
xor esi, esi
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4998a1
jmp 0x499acc
mov ebp, dword [esp + 0x60]
xor esi, esi
xchg esi, eax
mov byte [esp + 0x23], al
xchg esi, eax
nop
test ebx, ebx
je 0x4998b4
test ebx, 0x60
je 0x4998d5
mov dword [esp], ebx
call fcn.00492e50
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x60]
movzx esi, byte [esp + 0x23]
movzx edi, byte [ebp + 0xf]
and edi, 0x1f
cmp edi, 0x12
ja 0x4998f5
cmp edi, 0x11
jne 0x4998eb
mov edi, dword [ebp + 0x20]
jmp 0x499915
cmp edi, 0x12
jne 0x499913
mov edi, dword [ebp + 0x20]
jmp 0x499915
cmp edi, 0x15
jne 0x4998ff
mov edi, dword [ebp + 0x24]
jmp 0x499915
cmp edi, 0x16
jne 0x499909
mov edi, dword [ebp + 0x20]
jmp 0x499915
cmp edi, 0x17
jne 0x499913
mov edi, dword [ebp + 0x20]
jmp 0x499915
xor edi, edi
mov dword [esp + 0x54], edi
xchg esi, eax
test al, al
xchg esi, eax
je 0x499927
cmp eax, 0x11
jmp 0x4999f8
mov esi, dword [esp + 0x6c]
movzx ebx, byte [esi + 0xf]
and ebx, 0x1f
cmp ebx, 0x12
ja 0x49994b
cmp ebx, 0x11
jne 0x499941
mov ebx, dword [esi + 0x20]
jmp 0x49996b
cmp ebx, 0x12
jne 0x499969
mov ebx, dword [esi + 0x20]
jmp 0x49996b
cmp ebx, 0x15
jne 0x499955
mov ebx, dword [esi + 0x24]
jmp 0x49996b
cmp ebx, 0x16
jne 0x49995f
mov ebx, dword [esi + 0x20]
jmp 0x49996b
cmp ebx, 0x17
jne 0x499969
mov ebx, dword [esi + 0x20]
jmp 0x49996b
xor ebx, ebx
test edi, edi
je 0x499983
mov dword [esp + 0x44], eax
lea eax, [0xa32404]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
jmp 0x499993
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x28], eax
xor edi, edi
mov eax, dword [esp + 0x4c]
test ebx, ebx
je 0x4999a7
mov dword [esp + 0x3c], eax
lea eax, [0xa32404]
mov dword [esp + 0x24], eax
jmp 0x4999af
xor ebx, ebx
mov dword [esp + 0x24], ebx
xor ebx, ebx
lea eax, [0x96ad21]
mov dword [esp], eax
mov dword [esp + 4], 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00499490
mov eax, dword [esp + 0x38]
cmp eax, 0x11
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x54]
je 0x499a0b
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 8]
cmp edx, 0x11
jmp 0x499a3b
nop
mov dword [esp], ebp
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00497330
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
cmp eax, 0x11
mov edx, eax
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x54]
mov eax, ebp
mov ecx, dword [esp + 0x64]
je 0x499a61
cmp edx, 0x17
jne 0x499a50
mov edx, dword [esp + 0x70]
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov edx, dword [edx + 8]
jmp 0x499aa0
mov edx, eax
mov eax, dword [esp + 0x70]
mov esi, dword [eax + 4]
mov ebx, dword [eax]
mov eax, edx
mov edx, esi
jmp 0x499aa0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x58], ecx
nop
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00497330
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x54]
mov edx, esi
mov ebx, dword [esp + 0x70]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
call fcn.00464550
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
add esp, 0x5c
ret
lea eax, [0x901dc0]
mov dword [esp], eax
call fcn.0040c320
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x96ad21]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
lea ecx, [0x8e98c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00438c00
lea eax, [0x901dc0]
mov dword [esp], eax
call fcn.0040c320
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x96ad21]
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
lea ecx, [0x8e98c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00438c00
nop
call fcn.00468280
jmp fcn.004997a0