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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a04d9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
call fcn.00497ac0
mov ecx, ebx
call fcn.00498a80
call fcn.004281a0
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x49758c
call fcn.00409c60
call fcn.004280f0
xor eax, eax
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x44]
mov ecx, ebx
push eax
call fcn.00498120
mov dword [esp + 0x58], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call fcn.00429290
mov ebx, eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x58], 1
mov eax, 0x2aaaaaab
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
sub ecx, edi
imul ecx
mov dword [esp + 0x14], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x497660
mov ebx, 0xc
jmp 0x4975f0
mov eax, dword [ebx + edi + 4]
xor esi, esi
sub eax, dword [ebx + edi]
sar eax, 2
test eax, eax
je 0x497635
lea ecx, [ebx + edi]
mov eax, dword [ecx]
lea ecx, [eax + esi*4]
movzx eax, byte [0x64185d]
push eax
push ecx
push ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.004292c0
mov edi, dword [esp + 0x40]
inc esi
mov eax, dword [ebx + edi + 4]
lea ecx, [ebx + edi]
sub eax, dword [ecx]
sar eax, 2
cmp esi, eax
jb 0x497603
mov ecx, dword [esp + 0x44]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x14]
sub ecx, edi
imul ecx
inc esi
add ebx, 0x18
sar edx, 2
mov eax, edx
mov dword [esp + 0x14], esi
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4975f0
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x3c], 0
jne 0x497671
mov esi, 1
jmp 0x497a1b
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.0041b090
mov dword [esp + 0x30], eax
sub esp, 8
mov byte [esp + 0x60], 2
mov ecx, esp
mov dword [esp + 0x2c], esp
lea eax, [esp + 0x40]
push ecx
push eax
call fcn.00433240
mov byte [esp + 0x60], 3
mov esi, dword [0x6419b0]
test esi, esi
jne 0x4976f6
push 0xc
call fcn.00551c81
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
je 0x4976e9
mov byte [esp + 0x60], 5
mov dword [esi], vtable.__________________________.1.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00429290
mov dword [esi + 4], eax
jmp 0x4976eb
xor esi, esi
mov byte [esp + 0x60], 3
mov dword [0x6419b0], esi
lea eax, [esp + 0x38]
mov byte [esp + 0x60], 2
push eax
mov ecx, esi
call fcn.004638f0
test eax, eax
jne 0x4979f4
cmp dword [esp + 0x34], eax
je 0x4979f4
mov edi, dword [esp + 0x30]
mov esi, dword [edi]
cmp esi, edi
je 0x4977e3
push ecx
mov ecx, dword [esi + 0x14]
mov eax, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0044d300
mov byte [esp + 0x5c], 6
mov eax, dword [0x6403e4]
test eax, eax
jne 0x497774
push 0x360
call fcn.00551c81
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x5c], 7
test eax, eax
je 0x497768
mov ecx, eax
call fcn.00455930
jmp 0x49776a
xor eax, eax
mov byte [esp + 0x5c], 6
mov dword [0x6403e4], eax
mov ecx, eax
mov byte [esp + 0x5c], 2
call fcn.0045adc0
test eax, eax
je 0x497797
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.00428f30
mov esi, dword [eax]
jmp 0x4977d7
cmp byte [esi + 0xd], 0
jne 0x4977d7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4977bc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4977d7
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4977b0
jmp 0x4977d7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4977d5
cmp esi, dword [eax + 8]
jne 0x4977d5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4977c5
mov esi, eax
mov edi, dword [esp + 0x30]
cmp esi, edi
jne 0x497727
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x497914
mov ecx, dword [esp + 0x44]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x40]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x4979e4
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0xc]
sub eax, dword [ecx]
xor edx, edx
sar eax, 2
mov dword [esp + 0x18], edx
test eax, eax
je 0x4979e4
lea esp, [esp]
mov eax, dword [ecx]
mov ecx, edi
mov edx, dword [eax + edx*4]
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x497867
cmp dword [eax + 0x10], edx
jae 0x49784a
mov eax, dword [eax + 8]
jmp 0x49784e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x497840
cmp ecx, edi
je 0x497867
cmp edx, dword [ecx + 0x10]
jb 0x497867
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x14]
jmp 0x49786f
mov dword [esp + 0x20], edi
lea eax, [esp + 0x20]
mov eax, dword [eax]
cmp eax, edi
je 0x4978e1
mov esi, dword [eax + 0x14]
test esi, esi
je 0x4978e1
mov dword [esp + 0x24], esi
call fcn.00409c60
mov ebx, eax
mov edi, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x64]
cmp ecx, edi
je 0x4978a0
cmp dword [ecx], esi
je 0x49789c
add ecx, 4
cmp ecx, edi
jne 0x497891
cmp ecx, edi
jne 0x4978dd
mov eax, dword [ebx + 0x44]
mov dword [esi + 0x24], eax
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x68]
sub ecx, dword [ebx + 0x64]
sub eax, dword [ebx + 0x64]
sar ecx, 2
sar eax, 2
cmp ecx, eax
ja 0x4978dd
mov eax, dword [ebx + 0x64]
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x24]
push ecx
push ecx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + 0x64]
call fcn.004528a0
mov dword [ebx + 0x78], 0xffffffff
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
add ecx, 0xc
inc edx
mov dword [esp + 0x18], edx
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
cmp edx, eax
jb 0x497830
mov ecx, dword [esp + 0x1c]
call fcn.004987e0
mov esi, 1
jmp 0x4979f6
cmp eax, 1
je 0x497922
cmp eax, 2
jne 0x4979e4
mov ecx, dword [esp + 0x44]
mov eax, 0x2aaaaaab
sub ecx, dword [esp + 0x40]
imul ecx
mov dword [esp + 0x18], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4979e4
xor ebx, ebx
jmp 0x497950
sub esp, 8
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x30], esp
push ecx
push eax
call fcn.00498e00
mov byte [esp + 0x60], 8
sub esp, 0x18
mov edi, dword [esp + 0x60]
mov esi, esp
add edi, ebx
mov dword [esp + 0x44], esi
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.0040c3c0
add eax, 0x10
mov dword [esi + 8], eax
lea eax, [edi + 0xc]
mov byte [esp + 0x78], 9
push eax
lea ecx, [esi + 0xc]
call fcn.00409b60
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x78], 8
mov byte [esp + 0x78], 2
call fcn.004981f0
mov ecx, dword [esp + 0x44]
mov eax, 0x2aaaaaab
sub ecx, dword [esp + 0x40]
add ebx, 0x18
mov esi, dword [esp + 0x18]
imul ecx
inc esi
sar edx, 2
mov eax, edx
mov dword [esp + 0x18], esi
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x497950
mov ecx, dword [esp + 0x1c]
call fcn.004987e0
mov esi, 1
jmp 0x4979f6
xor esi, esi
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
push eax
push dword [eax]
lea eax, [esp + 0x30]
push eax
call fcn.00428d00
push dword [esp + 0x30]
call fcn.00551995
mov ebx, dword [esp + 0x3c]
add esp, 4
push ebx
push dword [ebx]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
call fcn.00428d00
push dword [esp + 0x38]
call fcn.00551995
mov ecx, dword [esp + 0x44]
add esp, 4
test ecx, ecx
je 0x497a5a
push dword [esp + 0x28]
mov edx, dword [esp + 0x48]
push ecx
call fcn.00499170
push dword [esp + 0x48]
call fcn.00551995
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret