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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f9f62
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x98]
lea edi, [esi + 0x94]
cmp eax, ebx
je 0x4955d0
mov ecx, dword [edi + 8]
sub ecx, eax
test ecx, 0xfffffff8
jne 0x495604
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x34]
push edx
mov edx, dword [esi + 0x30]
push eax
push ecx
push edx
push edi
call fcn.00495280
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x98]
add esp, 0x14
cmp ecx, eax
je 0x495604
push ebx
push eax
push ecx
call fcn.004966e0
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x34]
mov ebp, eax
mov eax, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x30]
push ecx
push edx
push eax
mov dword [esp + 0x2c], ebp
call fcn.00468350
mov edx, dword [esi + 0xa4]
mov ecx, eax
mov eax, ebp
add esp, 0x10
sub eax, edx
xor edx, edx
imul eax, ecx
div dword [esi + 0x20]
mov ebp, eax
cmp ebp, ecx
jbe 0x495644
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0x13]
mov dword [esi + 0xa4], ecx
mov byte [esp + 0x60], dl
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x178], ebx
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4956bb
mov ecx, dword [edi + 8]
sub ecx, eax
test ecx, 0xfffffff8
je 0x4956bb
cmp ebp, ebx
je 0x4956bb
mov edx, dword [esi + 0x9c]
sub edx, 8
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [edx + 4]
lea edx, [esp + 0x14]
mov dword [esp + 0x18], ecx
push edx
push eax
lea ecx, [esp + 0x68]
call fcn.004960f0
mov ecx, dword [edi + 8]
sub ecx, 8
push ecx
mov ecx, edi
call fcn.004962a0
dec ebp
jmp 0x495669
mov edi, dword [esi + 0xc]
mov ebp, dword [esi + 0x10]
push 0xa
lea ecx, [esp + 0x158]
call fcn.0048fc70
mov dword [esp + 0x14c], edi
mov dword [esp + 0x150], ebp
mov dl, byte [esp + 0x13]
mov dword [esp + 0x74], ebx
mov byte [esp + 0x70], dl
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x74]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push eax
lea edx, [esp + 0x70]
push ecx
push edx
mov byte [esp + 0x190], 2
call fcn.00495f20
lea eax, [esp + 0x164]
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.00495490
mov edx, dword [esp + 0x1d8]
mov eax, dword [esp + 0x1d4]
mov ecx, dword [esp + 0x1d0]
add esp, 0x20
push edx
mov edx, dword [esp + 0x1b0]
push eax
mov eax, dword [esp + 0x1b0]
push ecx
mov ecx, dword [esp + 0x1a8]
push edx
mov edx, dword [esp + 0x1b4]
push eax
mov eax, dword [esp + 0x1b4]
push ecx
mov ecx, dword [esp + 0x1b0]
push edx
mov edx, dword [esp + 0x1b0]
push eax
mov eax, dword [esp + 0x1b0]
push ecx
mov ecx, dword [esp + 0x1a8]
push edx
push eax
lea edx, [esp + 0x8c]
push ecx
push edx
mov ecx, esi
call fcn.004946b0
mov al, byte [esp + 0x13]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x48], al
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x4c]
push edx
mov edx, dword [esi + 0x14]
push eax
push ecx
lea eax, [esp + 0x70]
push edx
mov byte [esp + 0x18c], 3
push eax
call fcn.00495f20
mov edi, dword [esi + 0xc]
mov ebp, dword [esi + 0x10]
add esp, 0x18
lea ecx, [esp + 0x88]
push 0xa
call fcn.0048fc70
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ebp
lea ecx, [esp + 0x80]
lea edx, [esp + 0x48]
push ecx
push edx
mov byte [esp + 0x180], 4
call fcn.00495490
mov edi, dword [esi + 0xc]
mov ebp, dword [esi + 0x10]
add esp, 8
lea ecx, [esp + 0x10c]
push 0xa
call fcn.0048fc70
mov dword [esp + 0x104], edi
mov dword [esp + 0x108], ebp
lea ecx, [esp + 0x104]
mov byte [esp + 0x178], 5
call fcn.00469b70
lea eax, [esp + 0x14c]
lea ecx, [esp + 0x104]
push eax
call fcn.00469900
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x108]
call fcn.004699f0
mov dl, byte [esp + 0x13]
xor ecx, ecx
mov byte [esp + 0x20], dl
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov edi, dword [esi + 0x88]
mov eax, dword [esi + 0x8c]
cmp edi, eax
mov byte [esp + 0x178], 6
je 0x4958dc
mov eax, dword [edi + 8]
mov ebp, dword [esi + 0x24]
mov edx, dword [esp + 0x1c]
add eax, ebp
cmp edx, eax
jae 0x4958cb
push edi
push 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.004962e0
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x8c]
add edi, 0x10
cmp edi, eax
jne 0x4958aa
mov edx, dword [esp + 0x24]
lea ebp, [esi + 0x84]
lea eax, [esp + 0x20]
cmp ebp, eax
je 0x4959fd
cmp edx, ebx
jne 0x4958f6
xor edi, edi
jmp 0x4958fd
sub ecx, edx
sar ecx, 4
mov edi, ecx
mov ecx, ebp
call fcn.0040c0f0
cmp edi, eax
ja 0x495943
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.00496620
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
push eax
mov ecx, ebp
call fcn.0042ff70
lea ecx, [esp + 0x20]
call fcn.0040c0f0
mov ecx, dword [ebp + 4]
shl eax, 4
add eax, ecx
mov dword [ebp + 8], eax
jmp 0x4959fd
mov ecx, ebp
call fcn.00496060
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.0040c0f0
cmp eax, edi
ja 0x4959ac
mov edx, dword [esp + 0x24]
mov ecx, ebp
mov dword [esp + 0x14], edx
call fcn.0040c0f0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [ebp + 4]
shl edi, 4
add edi, edx
push eax
push edi
push ecx
call fcn.00496620
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, ebp
push edx
push eax
push edi
call fcn.00496080
lea ecx, [esp + 0x20]
call fcn.0040c0f0
mov ecx, dword [ebp + 4]
shl eax, 4
add eax, ecx
mov dword [ebp + 8], eax
jmp 0x4959fd
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
push ecx
push edx
mov ecx, ebp
call fcn.0042ff70
mov eax, dword [ebp + 4]
push eax
call fcn.004dae3e
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0040c0f0
cmp eax, ebx
jge 0x4959d6
xor eax, eax
shl eax, 4
push eax
call fcn.004dae15
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [ebp + 4], eax
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, ebp
call fcn.00496080
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov edi, dword [esi + 0x88]
mov eax, dword [esi + 0x8c]
cmp edi, eax
je 0x495a32
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0xc]
cmp eax, edx
ja 0x495a25
push edi
lea ecx, [esp + 0x84]
call fcn.004697d0
mov eax, dword [esi + 0x8c]
add edi, 0x10
cmp edi, eax
jne 0x495a0d
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0xc]
cdq
idiv ecx
imul eax, ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
cdq
idiv ecx
imul eax, ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
push ecx
lea ecx, [esp + 0x84]
call fcn.004697d0
lea edx, [esp + 0x104]
lea ecx, [esp + 0x80]
push edx
call fcn.004699f0
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
push 0xa
lea ecx, [esp + 0xb8]
mov dword [esp + 0x1c], eax
call fcn.0048fc70
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], ecx
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
push 0xa
lea ecx, [esp + 0x134]
mov byte [esp + 0x17c], 7
mov dword [esp + 0x1c], edx
call fcn.0048fc70
mov eax, dword [esp + 0x18]
mov dword [esp + 0x128], edi
mov dword [esp + 0x12c], eax
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
push 0xa
lea ecx, [esp + 0xdc]
mov byte [esp + 0x17c], 8
call fcn.0048fc70
mov edx, dword [esp + 0x18]
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], edx
mov al, byte [esp + 0x13]
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x38], al
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x94]
mov byte [esp + 0x178], 0xa
cmp eax, ebx
je 0x495c78
mov edi, dword [esp + 0x18c]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x80]
push ecx
push edx
call fcn.004954d0
mov eax, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x1bc]
mov edx, dword [esp + 0x1b8]
add esp, 8
push eax
mov eax, dword [esp + 0x1b0]
push ecx
mov ecx, dword [esp + 0x1b0]
push edx
mov edx, dword [esp + 0x1a8]
push eax
mov eax, dword [esp + 0x1b4]
push ecx
mov ecx, dword [esp + 0x1b4]
push edx
mov edx, dword [esp + 0x1b0]
push eax
mov eax, dword [esp + 0x1a4]
push ecx
mov ecx, dword [esp + 0x1a4]
push edx
push edi
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov ecx, esi
call fcn.004946b0
lea eax, [esp + 0xac]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00495490
add esp, 8
lea edx, [esp + 0x80]
lea ecx, [esp + 0x128]
push edx
call fcn.00469900
lea eax, [esp + 0xac]
lea ecx, [esp + 0xd0]
push eax
call fcn.00469900
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x84]
call fcn.004699f0
lea edx, [esp + 0x80]
lea ecx, [esp + 0x104]
push edx
call fcn.00469900
lea ecx, [esp + 0x80]
call fcn.00469b70
lea eax, [esp + 0xac]
lea ecx, [esp + 0x80]
push eax
call fcn.00469900
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push ecx
push edx
lea ecx, [esp + 0x88]
call fcn.00469c60
lea eax, [esp + 0x128]
lea ecx, [esp + 0x80]
push eax
call fcn.004699f0
cmp dword [esp + 0x94], ebx
jne 0x495b44
mov ecx, dword [esp + 0x180]
lea edx, [esp + 0xd0]
push ecx
push edx
call fcn.004954d0
mov edi, dword [esi + 0x88]
mov eax, dword [esi + 0x8c]
add esp, 8
cmp edi, eax
je 0x495cda
push edi
lea ecx, [esp + 0xd4]
call fcn.00469770
test eax, eax
je 0x495cbd
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
jmp 0x495ccd
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x1c]
sub ecx, eax
shr ecx, 1
add ecx, eax
mov dword [edi + 0xc], ecx
mov eax, dword [esi + 0x8c]
add edi, 0x10
cmp edi, eax
jne 0x495ca0
lea ecx, [esp + 0xac]
call fcn.00469b70
mov edi, dword [esi + 0x88]
mov eax, dword [esi + 0x8c]
cmp edi, eax
je 0x495d10
push edi
lea ecx, [esp + 0xb0]
call fcn.004697d0
mov eax, dword [esi + 0x8c]
add edi, 0x10
cmp edi, eax
jne 0x495cf6
lea edx, [esp + 0xac]
lea ecx, [esp + 0xd0]
push edx
call fcn.004699f0
lea eax, [esp + 0xd8]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xe4]
neg eax
sbb eax, eax
mov dword [esp + 0x58], eax
cmp eax, ebx
je 0x495da6
lea ecx, [esp + 0x14]
lea edx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.004362b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x100], eax
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xf4]
mov dword [esp + 0xf4], ecx
mov ecx, dword [ebp + 8]
push eax
push 1
push ecx
mov ecx, ebp
mov dword [esp + 0x104], edx
call fcn.004962e0
mov eax, dword [esp + 0x58]
jmp 0x495d3e
mov edx, dword [esp + 0x3c]
push edx
call fcn.004dae3e
lea eax, [esp + 0xdc]
mov esi, 0x50354c
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xd8], esi
lea ecx, [esp + 0xd8]
mov byte [esp + 0x178], 0xb
call fcn.00496690
lea ecx, [esp + 0x130]
mov dword [esp + 0x130], esi
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x130]
mov byte [esp + 0x178], 0xc
call fcn.00496690
lea edx, [esp + 0xb4]
mov dword [esp + 0xb4], esi
mov dword [esp + 0x14], edx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x178], 0xd
call fcn.00496690
mov eax, dword [esp + 0x24]
push eax
call fcn.004dae3e
lea ecx, [esp + 0x110]
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10c], esi
lea ecx, [esp + 0x10c]
mov byte [esp + 0x178], 0xe
call fcn.00496690
lea edx, [esp + 0x88]
mov dword [esp + 0x88], esi
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x88]
mov byte [esp + 0x178], 0xf
call fcn.00496690
mov eax, dword [esp + 0x4c]
push eax
call fcn.004dae3e
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x50], ebx
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.004dae3e
lea edx, [esp + 0x15c]
add esp, 8
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x154], esi
lea ecx, [esp + 0x154]
mov byte [esp + 0x178], 0x10
call fcn.00496690
mov eax, dword [esp + 0x64]
push eax
call fcn.004dae3e
mov ecx, dword [esp + 0x174]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 0x3c