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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x98]
cmp eax, dword [ecx + 8]
jbe 0x497c5d
sub esp, 0x118
mov eax, dword [esp + 0x11c]
mov dword [esp], eax
mov eax, dword [esp + 0x120]
mov dword [esp + 4], eax
call fcn.00497c70
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
test cl, cl
je 0x497bef
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x110], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00497eb0
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
test cl, cl
je 0x497bef
mov ecx, edx
neg edx
test ebx, ebx
je 0x4970f7
cmp byte [eax], 0x2c
jne 0x497160
mov eax, dword [esp + 0x110]
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], edx
mov eax, dword [esp + 0x128]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x140], eax
mov dword [esp + 0x14c], 0x7fffffff
mov dword [esp + 0x148], 0xffffffff
mov byte [esp + 0x150], 0
mov byte [esp + 0x151], 1
add esp, 0x118
ret
mov dword [esp + 0x94], ecx
mov dword [esp + 0x34], edx
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.00497c70
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
movzx ebx, byte [esp + 0x18]
mov ebp, dword [esp + 0x14]
test bl, bl
je 0x497b8b
mov dword [esp + 0x90], ecx
mov dword [esp + 0x114], eax
test ebp, ebp
je 0x4971ab
cmp byte [edx], 0x2c
jne 0x4971c0
mov esi, dword [esp + 0x94]
add esi, 0xfffff1f0
xchg esi, ebx
neg ebx
xchg esi, ebx
jmp 0x4971f1
mov dword [esp], edx
mov dword [esp + 4], ebp
call fcn.00497eb0
movzx ebx, byte [esp + 0x14]
mov esi, dword [esp + 8]
xchg esi, ebx
neg ebx
xchg esi, ebx
mov edx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x90]
test bl, bl
je 0x497b8b
test ebp, ebp
jne 0x497208
mov ebp, 0xf
lea edx, [0x76c2c1]
test ebp, ebp
jbe 0x497c53
mov dword [esp + 0x94], esi
movzx ebx, byte [edx]
cmp bl, 0x2c
je 0x497288
cmp bl, 0x3b
je 0x497288
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x148], 0
mov byte [esp + 0x150], 0
mov byte [esp + 0x151], 0
add esp, 0x118
ret
lea edi, [esp + 0xd0]
xor eax, eax
call fcn.00456d5b
lea edi, [esp + 0xe4]
call fcn.00456d5b
lea ecx, [ebp - 1]
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
add ecx, edx
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.004983a0
movzx ecx, byte [esp + 0x24]
mov byte [esp + 0x2b], cl
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0xf8]
lea esi, [esp + 8]
call fcn.0045723e
lea edi, [esp + 0xd0]
lea esi, [esp + 0xf8]
call fcn.0045723e
movzx ecx, byte [esp + 0x2b]
test cl, cl
je 0x497b27
test edx, edx
je 0x497b27
cmp byte [ebx], 0x2c
jne 0x497b27
lea eax, [edx - 1]
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 1
add eax, ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004983a0
movzx eax, byte [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x8c], ecx
lea edi, [esp + 0xf8]
lea esi, [esp + 8]
call fcn.0045723e
lea edi, [esp + 0xe4]
lea esi, [esp + 0xf8]
call fcn.0045723e
test al, al
je 0x497ac3
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x497ac3
mov eax, dword [esp + 0x12c]
add eax, 0x1ad9c900
mov edx, dword [esp + 0x130]
adc edx, 0x7ffffffe
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 8], 0
call fcn.004953c0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 0x88], eax
mov edx, ecx
add ecx, 0xd116ebf
adc eax, 0x44
mov ebp, eax
shr eax, 1
mov esi, 0xa3d70a3e
mov edi, edx
mul esi
shr edx, 7
mov dword [esp + 0x84], edx
imul eax, edx, 0x190
sub ebp, eax
mov eax, ebp
mov ebx, 0xa3d70a
mul ebx
mov dword [esp + 0x80], eax
mov ebx, ecx
shr ecx, 1
mov eax, ecx
mov ecx, edx
mul esi
shr edx, 7
mov dword [esp + 0x7c], edx
imul eax, edx, 0x190
sub ebx, eax
lea eax, [ebp + ebp*2]
shl eax, 5
add eax, ebx
shr eax, 1
mov ebx, edx
mul esi
shr edx, 7
mov dword [esp + 0x78], edx
add ebx, 0
mov ebp, dword [esp + 0x80]
add ebp, ebx
add edx, ebp
mov dword [esp + 0x58], edx
mov eax, 0x190
mul edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], eax
mov eax, 0x23ab1
mov esi, dword [esp + 0x58]
mul esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x7c]
add esi, 0
mov esi, dword [esp + 0x84]
adc esi, 0
mov edx, dword [esp + 0x80]
add edx, ebx
adc ecx, esi
mov edx, dword [esp + 0x78]
add edx, ebp
adc ecx, 0
mov dword [esp + 0x68], ecx
imul edx, ecx, 0x190
mov ebx, dword [esp + 0x74]
add edx, ebx
mov ebx, dword [esp + 0x70]
sub edi, ebx
mov dword [esp + 0x84], edi
mov ebx, dword [esp + 0x88]
sbb ebx, edx
mov dword [esp + 0x88], ebx
add edi, 0xd116ebf
adc ebx, 0x44
mov dword [esp + 0xcc], ebx
shr ebx, 1
mov eax, ebx
mov ecx, 0xa3d70a3e
mul ecx
shr edx, 5
mov dword [esp + 0x80], edx
imul eax, edx, 0x64
mov ebp, dword [esp + 0xcc]
sub ebp, eax
mov eax, ebp
mov esi, 0x28f5c28
mul esi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
mov esi, edi
shr edi, 1
mov eax, ecx
mul edi
shr edx, 5
mov dword [esp + 0x74], edx
imul eax, edx, 0x64
sub esi, eax
lea eax, [ebp + ebp*2]
shl eax, 5
add eax, esi
shr eax, 1
mov ebp, edx
mul ecx
shr edx, 5
add ebp, 0
mov ecx, dword [esp + 0x78]
mov esi, ecx
add ecx, ebp
mov edi, edx
add edx, ecx
mov dword [esp + 0x58], edx
mov eax, 0x64
mul edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x70], eax
mov eax, 0x8eac
mov ebx, dword [esp + 0x58]
mul ebx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xc4], eax
mov ebx, dword [esp + 0x74]
add ebx, 0
mov ebx, dword [esp + 0x80]
adc ebx, 0
add esi, ebp
mov ebp, dword [esp + 0x7c]
adc ebp, ebx
add edi, ecx
adc ebp, 0
mov dword [esp + 0xcc], ebp
imul ecx, ebp, 0x64
mov ebx, dword [esp + 0x78]
add ecx, ebx
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x70]
sub ebx, esi
mov dword [esp + 0x84], ebx
mov esi, dword [esp + 0x88]
sbb esi, ecx
mov dword [esp + 0x88], esi
mov ecx, ebx
add ebx, 0xd116ebf
adc esi, 0x44
mov dword [esp + 0xc0], esi
shr ebx, 2
shl esi, 0x1e
or esi, ebx
mov dword [esp + 0x80], esi
mov ebx, eax
mov eax, 0x5b5
mul esi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
shl esi, 2
mov dword [esp + 0x74], esi
sub ecx, esi
mov dword [esp + 0x70], ecx
add ecx, 0xd116ebf
mov eax, 0x16d
mul ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 0x44]
add ecx, ebx
mov dword [esp + 0xb4], ecx
mov edx, dword [esp + 0x78]
add edx, ecx
mov dword [esp + 0xb0], edx
add eax, edx
mov dword [esp + 0xac], eax
mov eax, 0x15180
mov edx, dword [esp + 0xac]
mul edx
mov dword [esp + 0xac], edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x130]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x12c]
mov dword [esp], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x15180
call fcn.00450dd0
mov eax, dword [esp + 0x10]
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xa4], ecx
nop
mov edx, dword [esp + 0x54]
mov dword [esp], edx
lea edi, [esp + 4]
lea esi, [esp + 0xd0]
call fcn.0045723e
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
call fcn.00498b80
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
lea edi, [esp + 4]
lea esi, [esp + 0xe4]
call fcn.0045723e
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x18], ecx
call fcn.00498b80
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xa0], eax
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x8c]
mov ebx, edx
sar edx, 0x1f
mov dword [esp + 0x9c], edx
cmp edx, eax
xchg ebp, ebx
setg bl
xchg ebp, ebx
xchg ebp, eax
mov byte [esp + 0x2b], al
xchg ebp, eax
xchg esi, ebx
sete bl
xchg esi, ebx
cmp ebx, ecx
xchg edi, ebx
seta bl
xchg edi, ebx
mov eax, dword [esp + 0x30]
imul eax, eax, 0x15180
mov dword [esp + 0x98], eax
sar eax, 0x1f
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x98]
add ecx, edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0xa4]
adc edx, eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x68]
imul eax, eax, 0x23ab1
mov ecx, dword [esp + 0x6c]
add eax, ecx
mov ecx, dword [esp + 0xcc]
imul ecx, ecx, 0x8eac
mov edx, dword [esp + 0xc8]
add ecx, edx
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0xc4]
add edx, ebx
adc ecx, eax
mov eax, dword [esp + 0xc0]
shr eax, 2
mov edx, eax
shl eax, 2
mov ebx, dword [esp + 0x80]
shr ebx, 0x1e
or ebx, eax
mov eax, dword [esp + 0x84]
mov ebp, dword [esp + 0x74]
sub eax, ebp
mov eax, dword [esp + 0x88]
sbb eax, ebx
mov ebx, dword [esp + 0x70]
add ebx, 0xd116ebf
adc eax, 0x44
imul edx, edx, 0x5b5
mov ebx, dword [esp + 0x7c]
add edx, ebx
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0xb4]
add ebx, ebp
adc edx, ecx
imul eax, eax, 0x16d
mov ecx, dword [esp + 0xbc]
add eax, ecx
mov ecx, dword [esp + 0xb8]
mov ebx, dword [esp + 0xb0]
add ecx, ebx
adc eax, edx
imul eax, eax, 0x15180
mov ecx, dword [esp + 0xac]
add eax, ecx
mov ecx, dword [esp + 0x60]
mov edx, ecx
add ecx, 0xe5263700
mov ebx, eax
adc eax, 0x80000001
and edi, esi
movzx ebp, byte [esp + 0x2b]
or edi, ebp
xchg edi, eax
test al, al
xchg edi, eax
je 0x49788f
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0xa0]
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x110]
mov dword [esp + 0x10c], ebp
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x114]
mov dword [esp + 0x110], ebp
mov ebp, dword [esp + 0x38]
jmp 0x4978db
mov ebp, dword [esp + 0x9c]
mov esi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x114]
mov dword [esp + 0x10c], ebp
mov ebp, dword [esp + 0x9c]
xchg edi, eax
mov byte [esp + 0x2a], al
xchg edi, eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0x40]
cmp ebp, ecx
setg al
xchg edi, ebx
sete bl
xchg edi, ebx
mov ebx, dword [esp + 0x3c]
cmp ebx, esi
xchg ebp, ebx
setb bl
xchg ebp, ebx
and ebp, edi
or ebp, eax
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x497a46
mov eax, dword [esp + 0x50]
cmp eax, ecx
setl cl
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov edi, dword [esp + 0x4c]
cmp ebx, edi
setae bl
and ebx, ebp
or ebx, ecx
test bl, bl
je 0x4979bd
add edi, edx
mov ecx, dword [esp + 0x84]
adc eax, ecx
add edi, 0xe5263700
adc eax, 0x80000001
add edx, 0xe7076a80
adc ecx, 0x80000001
mov ebx, dword [esp + 0x110]
mov dword [esp + 0x134], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x138], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x144], eax
mov dword [esp + 0x140], edi
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x148], edx
movzx eax, byte [esp + 0x2a]
mov byte [esp + 0x150], al
mov byte [esp + 0x151], 1
add esp, 0x118
ret
add esi, edx
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x38]
adc ebx, ecx
add esi, 0xe5263700
adc ebx, 0x80000001
add edx, edi
adc ecx, eax
add edx, 0xe5263700
adc ecx, 0x80000001
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x13c], eax
mov dword [esp + 0x144], ebx
mov dword [esp + 0x140], esi
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x148], edx
movzx eax, byte [esp + 0x2a]
xor eax, 1
mov byte [esp + 0x150], al
mov byte [esp + 0x151], 1
add esp, 0x118
ret
add edx, esi
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x38]
adc eax, ecx
add edx, 0xe5263700
adc eax, 0x80000001
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x134], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x13c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x144], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x14c], eax
mov dword [esp + 0x148], edx
movzx eax, byte [esp + 0x2a]
mov byte [esp + 0x150], al
mov byte [esp + 0x151], 1
add esp, 0x118
ret
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x148], 0
mov byte [esp + 0x150], 0
mov byte [esp + 0x151], 0
add esp, 0x118
ret
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x148], 0
mov byte [esp + 0x150], 0
mov byte [esp + 0x151], 0
add esp, 0x118
ret
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x148], 0
mov byte [esp + 0x150], 0
mov byte [esp + 0x151], 0
add esp, 0x118
ret
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x148], 0
mov byte [esp + 0x150], 0
mov byte [esp + 0x151], 0
add esp, 0x118
ret
xor eax, eax
mov ecx, eax
call fcn.00456b40
nop
call fcn.00455690
jmp fcn.00497060