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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], esi
mov eax, dword [ebx]
call dword [eax + 0x194]
test al, al
jne 0x46feaa
cmp dword [esi + 4], 9
jle 0x46feaa
cmp dword [esi + 4], 0x19
jge 0x46feaa
mov ecx, dword [ebx + 0x48]
push esi
test ecx, ecx
je 0x46fe9e
mov eax, dword [ecx]
call dword [eax + 0x1e0]
jmp 0x4708cc
mov ecx, ebx
call fcn.0053d10a
jmp 0x4708cc
cmp dword [esi + 4], 0x1b
jne 0x46febc
mov byte [ebx + 0xba], 1
jmp 0x4708cc
cmp dword [esi + 4], 0x1a
jne 0x46fece
mov byte [ebx + 0xba], 0
jmp 0x4708cc
mov ecx, dword [ebx + 0x310]
push edi
test ecx, ecx
je 0x4701ae
mov eax, dword [ecx]
call dword [eax + 0x17c]
test al, al
je 0x4701ae
mov ecx, dword [ebx + 0x310]
mov eax, dword [ecx]
call dword [eax + 0x188]
test al, al
je 0x4701ae
cmp dword [esi + 4], 3
jne 0x46ff7f
movzx eax, word [esi + 0x18]
sub eax, 0x21
je 0x46ff72
sub eax, 1
je 0x46ff65
sub eax, 1
je 0x46ff58
sub eax, 1
je 0x46ff4b
dec eax
sub eax, 1
je 0x46ff3e
dec eax
sub eax, 1
jne 0x470292
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x54]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x50]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x60]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x64]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x5c]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x58]
jmp 0x4708cb
xor ecx, ecx
lea edi, [ebx - 8]
test edi, edi
mov eax, ebx
cmove eax, ecx
cmp dword [esi + 8], eax
jne 0x470051
cmp dword [esi + 4], 0x1e
jne 0x470051
cmp dword [esi + 0x1c], 0x18
jne 0x470051
mov eax, dword [ebx + 0x324]
test eax, eax
jle 0x47002f
dec eax
lea esi, [ebx - 8]
mov dword [ebx + 0x324], eax
lea ecx, [ebp - 0x1c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x3c]
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x40]
movd xmm1, dword [ebx + 0x324]
movd xmm0, dword [ebx + 0x320]
cvtdq2pd xmm1, xmm1
mov edx, dword [ebp - 0x18]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movd xmm0, dword [ebx + 0x31c]
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm1
mulsd xmm1, xmm0
cvttsd2si eax, xmm1
test eax, eax
jle 0x470013
test edx, edx
jne 0x47001a
test eax, eax
jns 0x47002f
cmp edx, dword [ebp - 0x28]
je 0x47002f
sub edx, eax
mov ecx, esi
mov eax, dword [esi]
push edx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
call dword [eax + 0x44]
jmp 0x4708cb
xor eax, eax
xor ecx, ecx
mov dword [ebx + 0x31c], eax
test edi, edi
mov dword [ebx + 0x320], eax
mov dword [ebx + 0x324], eax
mov eax, ebx
cmove eax, ecx
jmp 0x47013a
cmp dword [esi + 4], 0x18
jne 0x470292
lea edi, [ebx - 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xdc]
test al, al
jne 0x470090
movzx eax, word [esi + 0x1c]
sub eax, 0
je 0x470087
sub eax, 1
jne 0x470292
mov eax, dword [edi]
mov ecx, edi
jmp 0x47027d
mov eax, dword [edi]
mov ecx, edi
jmp 0x47028a
mov ecx, dword [ebx + 0x310]
call fcn.0054224c
mov ecx, dword [ebx + 0x310]
mov dword [ebp - 0x28], eax
call fcn.00542245
mov ecx, dword [ebx + 0x310]
mov dword [ebp - 0x38], eax
call fcn.00542253
mov ecx, dword [ebx + 0x320]
cdq
sub eax, edx
mov edi, eax
xor eax, eax
sar edi, 1
mov edx, eax
test ecx, ecx
jle 0x4700fc
movd xmm1, dword [ebx + 0x324]
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movd xmm0, dword [ebx + 0x31c]
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm1
mulsd xmm1, xmm0
cvttsd2si edx, xmm1
mov dword [ebx + 0x31c], edx
movzx ecx, word [esi + 0x1c]
sub ecx, eax
je 0x470129
sub ecx, 1
jne 0x47015a
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x38], ecx
je 0x47012e
test edx, edx
jle 0x470121
mov dword [ebx + 0x31c], eax
sub dword [ebx + 0x31c], edi
jmp 0x47015a
cmp dword [ebp - 0x38], eax
jne 0x47014a
xor edx, edx
lea ecx, [ebx - 8]
test ecx, ecx
mov eax, ebx
cmove eax, edx
mov ecx, dword [ebx + 0x44]
push 0x18
push eax
call fcn.00531285
jmp 0x4708cb
test edx, edx
jns 0x470154
mov dword [ebx + 0x31c], eax
add dword [ebx + 0x31c], edi
push dword [ebx + 0x31c]
call fcn.0059b13a
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.005a2434
fadd st(0), st(0)
xor edx, edx
pop ecx
pop ecx
lea ecx, [ebx - 8]
test ecx, ecx
mov ecx, dword [ebx + 0x44]
fstp qword [ebp - 0x1c]
cvttsd2si eax, qword [ebp - 0x1c]
push 0x1e
push 0x18
mov dword [ebx + 0x320], eax
mov dword [ebx + 0x324], eax
mov eax, ebx
cmove eax, edx
push eax
call fcn.005348d8
jmp 0x4708cb
mov ecx, dword [ebx + 0x314]
test ecx, ecx
je 0x470292
mov eax, dword [ecx]
call dword [eax + 0x17c]
test al, al
je 0x470292
mov ecx, dword [ebx + 0x314]
mov eax, dword [ecx]
call dword [eax + 0x188]
test al, al
je 0x470292
cmp dword [esi + 4], 3
jne 0x470264
movzx eax, word [esi + 0x18]
sub eax, 0x21
je 0x470257
sub eax, 1
je 0x47024a
sub eax, 1
je 0x47023a
sub eax, 1
je 0x47022a
dec eax
sub eax, 1
je 0x47021d
dec eax
sub eax, 1
jne 0x470292
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x74]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x70]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x80]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x84]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x7c]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x78]
jmp 0x4708cb
cmp dword [esi + 4], 0x18
jne 0x470292
movzx eax, word [esi + 0x1c]
sub eax, 0
je 0x470285
sub eax, 1
jne 0x470292
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x6c]
jmp 0x4708cb
lea ecx, [ebx - 8]
mov eax, dword [ecx]
call dword [eax + 0x68]
jmp 0x4708cb
lea edi, [ebx - 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xe4]
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp - 0x3c], eax
call dword [edx + 0xec]
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x18], eax
jne 0x4702bd
test eax, eax
je 0x4708c3
cmp dword [esi + 4], 0xe
jne 0x47037d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x188]
test al, al
je 0x47037d
push 0
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00484d0c
push dword [esi + 0x14]
lea eax, [ebp - 0x14]
push dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x470303
mov byte [ebx + 0x329], 1
jmp 0x47032b
push 0
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00493552
push dword [esi + 0x14]
lea eax, [ebp - 0x34]
push dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x47037d
mov byte [ebx + 0x329], 0
or dword [ebx + 0x334], 0x40
lea edi, [ebx + 0x340]
cmp byte [ebx + 0x328], 0
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x338], eax
mov eax, dword [esi + 0x14]
lea esi, [ebx + 0x58]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x33c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x4708cb
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x4708cb
lea eax, [ebx - 8]
neg eax
sbb eax, eax
and eax, ebx
push eax
call fcn.005304f4
jmp 0x4708cb
cmp dword [esi + 4], 0xf
jne 0x4703cf
mov eax, dword [ebx + 0x334]
test al, 0x40
je 0x4703cf
lea esi, [ebx + 0x340]
and eax, 0xffffffbf
cmp byte [ebx + 0x328], 0
lea edi, [ebx + 0x58]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x334], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x470800
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x470800
lea eax, [ebx - 8]
neg eax
sbb eax, eax
and eax, ebx
push eax
call fcn.00533acb
jmp 0x470800
cmp dword [esi + 4], 0xa
jne 0x470850
test byte [ebx + 0x334], 0x40
je 0x470850
mov eax, dword [esi + 0x14]
lea edx, [ebx + 0x340]
mov ecx, dword [esi + 0x10]
lea edi, [ebp - 0x14]
sub eax, dword [ebx + 0x33c]
sub ecx, dword [ebx + 0x338]
cmp byte [ebx + 0x329], 0
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x338], eax
mov eax, dword [esi + 0x14]
mov esi, edx
mov dword [ebp - 0x40], ecx
mov dword [ebx + 0x33c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x47062d
mov esi, dword [ebp - 0x3c]
test esi, esi
jle 0x4704fe
test ecx, ecx
mov ecx, dword [ebp - 0x38]
jle 0x47044f
mov eax, dword [ebx + 0x348]
sub eax, esi
cmp dword [ecx + 0x10], eax
jl 0x4708cb
mov edi, dword [ebp - 0x40]
test edi, edi
jns 0x470465
mov eax, dword [ecx + 0x10]
cmp eax, dword [ebx + 0x348]
jg 0x4708cb
mov esi, dword [ebp - 0xc]
mov ecx, ebx
mov eax, dword [ebx]
add esi, edi
mov dword [ebp - 0xc], esi
call dword [eax + 0x104]
mov ecx, esi
sub ecx, dword [ebp - 0x14]
cmp ecx, eax
jg 0x4704b4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x104]
mov ecx, dword [ebx + 0x348]
lea edi, [ebx + 0x340]
sub ecx, dword [edi]
cmp ecx, eax
jle 0x4708cb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x104]
mov esi, eax
add esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], esi
jmp 0x4704ba
lea edi, [ebx + 0x340]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x10c]
sub esi, dword [ebp - 0x14]
cmp esi, eax
jl 0x4705b8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
mov ecx, dword [ebx + 0x348]
sub ecx, dword [edi]
cmp ecx, eax
jge 0x4708cb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4705b8
test ecx, ecx
mov ecx, dword [ebp - 0x38]
jle 0x470510
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx]
jl 0x4708cb
mov edi, dword [ebp - 0x40]
test edi, edi
jns 0x470524
mov eax, dword [edx]
sub eax, esi
cmp dword [ecx + 0x10], eax
jg 0x4708cb
mov esi, dword [ebp - 0x14]
mov ecx, ebx
mov eax, dword [ebx]
add esi, edi
mov dword [ebp - 0x14], esi
call dword [eax + 0x104]
mov ecx, dword [ebp - 0xc]
sub ecx, esi
cmp ecx, eax
jg 0x470573
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x104]
mov ecx, dword [ebx + 0x348]
lea edi, [ebx + 0x340]
sub ecx, dword [edi]
cmp ecx, eax
jle 0x4708cb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x104]
mov esi, dword [ebp - 0xc]
sub esi, eax
mov dword [ebp - 0x14], esi
jmp 0x470579
lea edi, [ebx + 0x340]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
mov ecx, dword [ebp - 0xc]
sub ecx, esi
cmp ecx, eax
jl 0x4705b8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
mov ecx, dword [ebx + 0x348]
sub ecx, dword [edi]
cmp ecx, eax
jge 0x4708cb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0x14], ecx
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebx - 8]
call fcn.00484d0c
push eax
lea ecx, [ebp - 0x24]
call fcn.005232c7
lea ecx, [ebx + 0x340]
mov edi, ecx
lea esi, [ebp - 0x14]
push 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x348]
sub eax, dword [ecx]
mov ecx, ebx
push eax
call fcn.005396e5
cmp byte [ebx + 0x328], 0
mov dword [ebx + 0x80], eax
jne 0x4707f3
push 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx - 8]
call fcn.00484d0c
push eax
lea ecx, [ebp - 0x24]
call fcn.00524192
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx - 8]
call fcn.00484d0c
jmp 0x470831
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
test esi, esi
jle 0x4706f7
test edx, edx
jle 0x470655
mov eax, dword [ebx + 0x34c]
add eax, esi
cmp dword [ecx + 0x14], eax
jl 0x4708cb
test edx, edx
jns 0x470666
mov eax, dword [ecx + 0x14]
cmp eax, dword [ebx + 0x34c]
jg 0x4708cb
mov esi, dword [ebp - 8]
mov ecx, ebx
mov eax, dword [ebx]
add esi, edx
mov dword [ebp - 8], esi
call dword [eax + 0x114]
mov edi, dword [ebp - 0x10]
mov ecx, esi
sub ecx, edi
cmp ecx, eax
jg 0x4706b1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x114]
mov ecx, dword [ebx + 0x34c]
sub ecx, dword [ebx + 0x344]
cmp ecx, eax
jle 0x4708cb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x114]
lea esi, [edi + eax]
mov dword [ebp - 8], esi
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x11c]
sub esi, edi
cmp esi, eax
jl 0x4707aa
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x11c]
mov ecx, dword [ebx + 0x34c]
sub ecx, dword [ebx + 0x344]
cmp ecx, eax
jge 0x4708cb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x11c]
add eax, edi
mov dword [ebp - 8], eax
jmp 0x4707aa
test edx, edx
jle 0x47070c
mov eax, dword [ecx + 0x14]
cmp eax, dword [ebx + 0x344]
jl 0x4708cb
test edx, edx
jns 0x47071f
mov eax, dword [ebx + 0x344]
add eax, esi
cmp dword [ecx + 0x14], eax
jg 0x4708cb
mov esi, dword [ebp - 0x10]
mov ecx, ebx
mov eax, dword [ebx]
add esi, edx
mov dword [ebp - 0x10], esi
call dword [eax + 0x114]
mov edi, dword [ebp - 8]
mov ecx, edi
sub ecx, esi
cmp ecx, eax
jg 0x47076b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x114]
mov ecx, dword [ebx + 0x34c]
sub ecx, dword [ebx + 0x344]
cmp ecx, eax
jle 0x4708cb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x114]
mov esi, edi
sub esi, eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x11c]
mov ecx, edi
sub ecx, esi
cmp ecx, eax
jl 0x4707aa
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x11c]
mov ecx, dword [ebx + 0x34c]
sub ecx, dword [ebx + 0x344]
cmp ecx, eax
jge 0x4708cb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x11c]
sub edi, eax
mov dword [ebp - 0x10], edi
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebx - 8]
call fcn.00493552
push eax
lea ecx, [ebp - 0x24]
call fcn.005232c7
lea esi, [ebp - 0x14]
mov ecx, ebx
lea edi, [ebx + 0x340]
movsd dword es:[edi], dword [esi]
push 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x34c]
sub eax, dword [ebx + 0x344]
push eax
call fcn.005396e5
cmp byte [ebx + 0x328], 0
mov dword [ebx + 0x84], eax
je 0x47080c
lea edi, [ebx + 0x58]
lea esi, [ebx + 0x340]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.005393c1
jmp 0x4708cb
push 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx - 8]
call fcn.00493552
push eax
lea ecx, [ebp - 0x24]
call fcn.00524192
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx - 8]
call fcn.00493552
push eax
lea ecx, [ebp - 0x24]
call fcn.00524192
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x4708cb
lea eax, [ebp - 0x24]
push eax
call fcn.00531149
jmp 0x4708cb
cmp dword [esi + 4], 0x1d
jne 0x4708c3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x188]
test al, al
je 0x4708c3
push 0
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00484d0c
push dword [esi + 0x14]
lea eax, [ebp - 0x14]
push dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x47088c
push 0x7f84
jmp 0x4708b2
push 0
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00493552
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4708c3
push 0x7f85
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x4708cb
push esi
mov ecx, ebx
call fcn.0053d10a
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 4