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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x24]
cmp eax, dword [ecx + 8]
jbe 0x496a50
sub esp, 0xa4
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov ebp, dword [esp + 0xb0]
movzx esi, byte [ebp]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4966ab
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x49667a
mov edx, dword [ecx + 8]
test edx, edx
je 0x49667a
mov byte [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
lea edx, [esp + 0x94]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00498550
mov eax, dword [esp + 0xc]
test eax, eax
je 0x496668
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
jmp 0x4966ab
mov dword [esp + 0xb8], 0
add esp, 0xa4
ret
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call fcn.004958f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb8], eax
add esp, 0xa4
ret
mov esi, dword [ebp + 8]
mov dword [esp + 0x48], esi
mov edi, dword [ebp + 4]
mov dword [esp + 0x70], edi
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4968ef
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edx
mov ebp, dword [esp + 0xa8]
cmp eax, ebp
je 0x49671e
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 4]
mov ebx, dword [eax + 0xc]
mov edx, dword [eax + 4]
test esi, esi
je 0x4968c2
test ebx, ebx
je 0x4968c2
lea esi, [edi + esi*4 - 4]
lea edx, [edx + ebx*4 - 4]
cmp edx, esi
jne 0x4968c2
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x70]
mov byte [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea esi, [esp + 0x84]
cmp eax, esi
je 0x4968b9
mov dword [esp + 0x74], ecx
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
test esi, esi
jg 0x496783
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
jmp 0x49684b
mov dword [esp + 0x58], esi
mov dword [esp + 0x78], edi
cmp esi, 1
jne 0x4967f4
lea eax, [0x4bab60]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00448b30
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x78]
mov ecx, 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x6c], eax
mov edx, 1
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x50]
jmp 0x49684b
lea eax, [0x4bab60]
mov dword [esp], eax
mov dword [esp + 4], esi
lea eax, [esi + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 8], eax
call fcn.00448b30
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x44], esi
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x44]
cmp ebx, esi
jg 0x496855
mov esi, ebx
mov edx, dword [esp + 0x6c]
cmp edx, edi
je 0x49688a
mov dword [esp], edx
mov dword [esp + 4], edi
shl esi, 2
mov dword [esp + 8], esi
call fcn.004614a0
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x88], edx
movzx eax, byte [eax]
mov byte [esp + 0x84], al
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x84]
jmp 0x4968ce
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x70]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x7c], esi
mov esi, dword [esp + 0x48]
mov eax, edi
mov edi, dword [esp + 0x70]
jmp 0x4968ff
xor eax, eax
xor eax, eax
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xa8]
mov ebp, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x2c], ebx
call fcn.0049d110
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0xa8]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
lea edi, [ebx + 4]
mov edx, dword [0x59fca0]
test edx, edx
jne 0x496986
mov dword [ebx + 4], ecx
jmp 0x496991
mov edx, eax
mov eax, ecx
call fcn.00460bc0
mov eax, edx
test eax, eax
je 0x4969bb
mov eax, dword [esp + 0xac]
movzx eax, byte [eax]
test al, al
je 0x4969bb
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4969bb
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
test eax, 1
setne al
jmp 0x4969bd
xor eax, eax
mov byte [ebx], al
test al, al
je 0x496a42
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x496a42
mov dword [esp + 0x80], edi
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x7c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
call fcn.00499ae0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xa8]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [0x59fca0]
test ecx, ecx
jne 0x496a33
mov dword [ebx + 4], eax
jmp 0x496a3f
mov edi, dword [esp + 0x80]
call fcn.00460bc0
mov byte [ebx], 0
mov dword [esp + 0xb8], ebx
add esp, 0xa4
ret
call fcn.0045f7f0
jmp fcn.004965b0