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

Disassembly:
mov ecx, dword [0x62920c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x49769c
sub esp, 0x70
nop
mov edx, dword [esp + 0x74]
test edx, edx
je 0x497278
lea ebx, [0x6045e0]
cmp edx, ebx
jne 0x49727e
lea eax, [0x6292e8]
mov dword [esp], eax
lea eax, [0x517e60]
mov dword [esp + 4], eax
call fcn.0046f900
mov edx, dword [esp + 0x74]
jmp 0x49727e
lea edx, [0x6025c0]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x497431
mov dword [esp + 0x58], ecx
mov ebx, dword [edx + 0x38]
test ebx, ebx
je 0x49734a
mov ebp, dword [edx + 0x28]
mov dword [esp + 0x54], ebp
mov esi, dword [edx + 0x2c]
mov dword [esp + 0x50], esi
mov edi, dword [esp + 0x7c]
cmp edi, esi
sete al
setg cl
mov esi, dword [esp + 0x78]
cmp esi, ebp
xchg ebp, ebx
setae bl
xchg ebp, ebx
and ebp, eax
or ecx, ebp
test cl, cl
je 0x497352
mov ebp, dword [edx + 0x30]
mov dword [esp + 0x4c], ebp
mov eax, dword [edx + 0x34]
mov dword [esp + 0x48], eax
cmp edi, eax
sete cl
setl al
cmp esi, ebp
xchg ebp, ebx
setb bl
xchg ebp, ebx
and ebp, ecx
or eax, ebp
test al, al
je 0x497352
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
movzx ebx, byte [ebx + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
mov byte [esp + 0x9c], bl
add esp, 0x70
ret
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x64], edx
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x4973a1
mov ebx, dword [edx + 0x14]
mov ebp, dword [ebx + 4]
cmp edi, ebp
xchg ebp, ebx
setl bl
xchg ebp, ebx
sete al
cmp dword [ebx], esi
seta dl
and edx, eax
or edx, ebp
test dl, dl
jne 0x49739d
mov dword [esp + 0x44], ecx
mov dword [esp + 0x6c], ebx
mov eax, ecx
xor edx, edx
mov ebp, 0x7fffffff
mov eax, 0xffffffff
mov dword [esp + 0x54], eax
mov eax, ecx
jmp 0x4974b7
mov edx, dword [esp + 0x64]
mov dword [esp], edx
call fcn.004976b0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 4]
cmp edx, ecx
jae 0x49748c
mov ecx, dword [eax + 8]
shl edx, 4
mov ebx, dword [eax + 0x18]
mov ebp, dword [edx + ecx]
mov esi, dword [edx + ecx + 4]
mov edi, dword [edx + ecx + 8]
test ebx, ebx
je 0x4973de
mov eax, dword [eax + 0x14]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x4973e8
mov ebx, 0x7fffffff
mov eax, 0xffffffff
movzx ecx, byte [edx + ecx + 0xc]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x90], 0x80000000
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], eax
mov byte [esp + 0x9c], cl
add esp, 0x70
ret
lea eax, [0x50c1f5]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 3
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0x80000000
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], 0x7fffffff
mov dword [esp + 0x94], 0xffffffff
mov byte [esp + 0x9c], 0
add esp, 0x70
ret
mov eax, edx
call fcn.00469920
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x7c]
mov ebx, esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], ecx
mov ecx, ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], ebp
sub ecx, edx
cmp ecx, 1
jle 0x49751a
mov dword [esp + 0x40], ecx
shr ecx, 0x1f
mov ebp, dword [esp + 0x40]
add ebp, ecx
sar ebp, 1
add ebp, edx
cmp eax, ebp
jbe 0x497692
lea ecx, [ebp + ebp*2]
mov eax, dword [ebx + ecx*4]
mov ecx, dword [ebx + ecx*4 + 4]
cmp edi, ecx
xchg edi, ebx
sete bl
xchg edi, ebx
setl bl
cmp esi, eax
xchg esi, ebx
setb bl
xchg esi, ebx
and edi, esi
or ebx, edi
test bl, bl
jne 0x497493
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov edx, ebp
mov ebp, dword [esp + 0x3c]
jmp 0x497493
cmp edx, eax
jae 0x497689
lea edi, [edx + edx*2]
lea ecx, [ebx + edi*4 + 8]
movzx ecx, byte [ecx]
mov esi, dword [esp + 0x58]
cmp esi, ecx
jbe 0x497680
mov esi, dword [esp + 0x64]
mov ebp, dword [esi + 8]
shl ecx, 4
dec eax
mov esi, dword [ecx + ebp]
mov dword [esp + 0x68], esi
mov esi, dword [ecx + ebp + 4]
mov dword [esp + 0x58], esi
mov esi, dword [ecx + ebp + 8]
mov dword [esp + 0x44], esi
mov esi, dword [ebx + edi*4]
mov ebx, dword [ebx + edi*4 + 4]
movzx ecx, byte [ecx + ebp + 0xc]
cmp edx, eax
jne 0x497630
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0x24]
test edx, edx
je 0x497630
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x3b], cl
mov eax, dword [eax + 0x20]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
call fcn.00497780
movzx eax, byte [esp + 0x35]
test al, al
jne 0x4975c8
movzx ecx, byte [esp + 0x3b]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
jmp 0x497630
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
movzx edi, byte [esp + 0x34]
xchg edi, eax
mov byte [esp + 0x3a], al
xchg edi, eax
mov edi, dword [esp + 0x20]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], edi
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x98], edx
mov dword [esp + 0x94], esi
movzx eax, byte [esp + 0x3a]
mov byte [esp + 0x9c], al
add esp, 0x70
ret
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], esi
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x94], eax
mov byte [esp + 0x9c], cl
add esp, 0x70
ret
mov eax, ecx
mov ecx, esi
call fcn.00469920
mov ecx, eax
mov eax, edx
call fcn.00469920
mov ecx, eax
mov eax, ebp
call fcn.00469920
nop
call fcn.00468500
jmp fcn.00497230