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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10066b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
xor ebx, ebx
mov dword [esp + 0x38], edx
push esi
push edi
mov dword [esp + 0x2c], ecx
cmp dword [ecx + 0x10], ebx
jne 0x1004016d
xor al, al
jmp 0x10040d0f
push 2
xor ecx, ecx
pop esi
mov dword [esp + 0x10], esi
inc ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x14], ebx
jmp 0x10040191
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x38], 0x8206
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ecx
jl 0x10040181
mov dword [esp + 0x10], ebx
push 3
pop edi
cmp dword [esp + 0x10], ebx
jl 0x10040256
mov dword [esp + 0x14], ebx
jmp 0x100401c1
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xf8], 6
inc dword [esp + 0x14]
cmp dword [esp + 0x14], esi
jl 0x100401ae
mov eax, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x38]
cmp eax, 0xe939
mov eax, dword [esp + 0x10]
setg dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x10]
setle cl
xor edx, edx
cmp ecx, edi
mov eax, dword [esp + eax*4 + 0x38]
setle dl
xor ecx, ecx
cmp edx, eax
setge cl
neg ecx
mov dword [esp + 0xfc], ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov eax, dword [esp + eax*4 + 0x38]
cmp dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
setne cl
xor edx, edx
cmp eax, ecx
setne dl
sub edx, 0xfc6088b9
neg edx
sbb edx, edx
inc edx
add edx, 8
je 0x10040246
cmp dword [esp + 0x38], ebx
je 0x10040246
xor eax, eax
inc eax
jmp 0x10040248
mov eax, ebx
mov dword [esp + 0x14], eax
dec dword [esp + 0x10]
jns 0x100401a8
mov dword [esp + 0x10], ebx
jmp 0x100402ed
mov dword [esp + 0x24], 0x2dc6d0f0
mov dword [esp + 0x14], ebx
jmp 0x10040358
push 4
lea ecx, [esp + 0x88]
call fcn.100243cd
mov dword [esp + 0x1c], ebx
jmp 0x1004029a
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x84]
mov dword [eax + ecx*4], 0xfffffffa
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 4
jl 0x10040284
mov eax, dword [esp + 0x84]
mov dword [eax], ebx
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], bl
je 0x100402ba
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov eax, dword [esp + 0x84]
dec dword [eax]
jns 0x100402aa
cmp dword [esp + 0x24], ebx
je 0x10040339
mov dword [esp + 0x1c], 0x4151
cmp dword [esp + 0x1c], ebx
je 0x10040348
lea ecx, [esp + 0x84]
call fcn.100244a4
mov eax, dword [esp + 0x24]
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xfffffff3
jl 0x1004025f
lea ecx, [esp + 0x40]
call fcn.10040030
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x9c], 0xfffffffb
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x20], 0xe4a6f444
mov dword [esp + 0x34], 0xacd7d393
mov dword [esp + 0x24], 0x1b6e
mov dword [esp + 0x14], ebx
jmp 0x10040378
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], bl
je 0x10040348
call fcn.10040022
lea ecx, [esp + 0x84]
call fcn.100244a4
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0xc
jg 0x10040270
jmp 0x100402e5
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xac], 0xfffffffe
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edi
jl 0x10040365
mov dword [esp + 0x1c], 6
jmp 0x10040551
push dword [esp + 0x50]
movdqa xmm0, xmmword [0x10007e60]
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x11c]
mov dword [esp + 0x18], 0x51ad386c
push eax
mov dword [esp + 0x20], 0xfffffffb
lea ecx, [esp + 0xc4]
mov dword [esp + 0x20], 0xd0fa5166
push ebx
movdqu xmmword [esp + 0x124], xmm0
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
call fcn.100297be
mov dword [esp + 0x15c], ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], ebx
je 0x10040519
mov dword [esp + 0x14], 0xfffffffc
lea ecx, [esp + 0xe8]
mov dword [esp + 0x14], 0x849b76ee
mov dword [esp + 0x14], esi
mov dword [esp + 0x14], 0xfffffffe
push edi
call fcn.100243cd
mov dword [esp + 0x14], 0x194c
cmp dword [esp + 0x14], 0x132f
jge 0x100404e5
lea eax, [esp + 0x3c]
push eax
push 0x1000774c
call fcn.1004e57b
mov eax, dword [esp + 0x44]
pop ecx
pop ecx
test eax, eax
je 0x100404e0
dec eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x60]
push eax
push 0x1000774c
call fcn.1004e57b
mov eax, dword [esp + 0x68]
mov esi, ebx
mov dword [esp + 0x1c], ebx
mov edi, ebx
pop ecx
pop ecx
test eax, eax
jle 0x100404ba
lea eax, [esp + 0x90]
push eax
push 0x1000774c
call fcn.1004e57b
mov eax, dword [esp + 0x98]
pop ecx
pop ecx
cmp eax, ebx
jl 0x100404aa
mov esi, ebx
mov ebx, eax
jmp 0x100404af
cmp eax, esi
cmovg esi, eax
mov eax, dword [esp + 0x60]
inc edi
cmp edi, eax
jl 0x10040485
xor ebx, ebx
add eax, 0xfffffffe
lea ecx, [esi - 1]
cmp eax, ecx
cmovl ecx, eax
push ecx
push 0x10007754
call fcn.1004eb95
mov eax, dword [esp + 0x44]
pop ecx
pop ecx
test eax, eax
jne 0x1004045f
push 3
pop edi
push 2
pop esi
dec eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], ebx
jmp 0x10040501
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xe8]
mov dword [eax + ecx*4], 9
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edi
jl 0x100404eb
inc dword [esp + 0x24]
lea ecx, [esp + 0xe8]
call fcn.100244a4
jmp 0x10040539
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10040529
call fcn.10037a61
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10040539
call fcn.10040036
or dword [esp + 0x15c], 0xffffffff
lea ecx, [esp + 0xb8]
call fcn.100244a4
dec dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0xffffffe8
jl 0x1004038b
mov dword [esp + 0x14], 0x1fb6
cmp dword [esp + 0x14], 0x12f2
jge 0x10040678
push 0x110762c4
push 0x110762c8
push 0x100077dc
call fcn.1004e57b
add esp, 0xc
mov edi, ebx
cmp dword [0x110762c8], 0
jle 0x100405bb
mov esi, 0x11014840
push esi
push 0x10007748
call fcn.1004e57b
mov eax, dword [esi]
add esi, 4
pop ecx
pop ecx
inc dword [eax*4 + 0x11076330]
inc edi
cmp edi, dword [0x110762c8]
jl 0x10040599
mov esi, 0x11076330
mov edi, esi
cmp dword [edi], 1
jle 0x100405d2
push 0x100077e4
call fcn.1004f141
pop ecx
add edi, 4
cmp edi, 0x110d7db4
jl 0x100405c2
mov edx, dword [0x110762c8]
mov edi, ebx
test edx, edx
jle 0x1004061b
mov eax, dword [edi*4 + 0x11014840]
mov ecx, eax
and ecx, dword [0x110762c4]
cmp ecx, eax
je 0x10040616
cmp dword [ecx*4 + 0x11076330], ebx
jle 0x10040616
push 0x100077e8
call fcn.1004f141
mov edx, dword [0x110762c8]
pop ecx
inc edi
cmp edi, edx
jl 0x100405e9
push 0x61a84
push ebx
push esi
call fcn.1004ed20
mov edx, dword [0x110762c8]
add esp, 0xc
mov ecx, ebx
test edx, edx
jle 0x1004064f
mov eax, dword [ecx*4 + 0x11014840]
and eax, dword [0x110762c4]
inc dword [eax*4 + 0x11076330]
inc ecx
cmp ecx, edx
jl 0x10040636
cmp dword [esi], 1
jle 0x1004065f
push 0x100079e4
call fcn.1004f141
pop ecx
add esi, 4
cmp esi, 0x110d7db4
jl 0x1004064f
push 0x1000775c
call fcn.1004f141
pop ecx
push 3
pop edi
mov dword [esp + 0x10], ebx
jmp 0x10040706
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
sub edx, 0x372585fa
neg edx
push 0
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
mov eax, dword [esp + 0x14]
setl cl
mov esi, dword [esp + eax*4 + 0xb0]
mov eax, dword [esp + 0x14]
sub esi, ecx
sub esi, 0x1971
neg esi
sbb esi, esi
inc esi
sub esi, dword [esp + eax*4 + 0xb0]
mov eax, dword [esp + 0x28]
neg esi
mov ecx, dword [esp + 0x38]
sbb esi, esi
xor edx, edx
inc esi
cmp esi, eax
mov eax, dword [esp + 0x24]
setg dl
cmp eax, ecx
mov eax, dword [esp + 0x14]
pop ecx
setg cl
sub ecx, edx
neg ecx
sbb ecx, ecx
inc ecx
imul ecx, dword [esp + eax*4 + 0xac]
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xac], ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jle 0x10040681
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x14], 0x10
jb 0x1004071f
mov esi, dword [eax]
jmp 0x10040721
mov esi, eax
cmp dword [eax + 0x14], 0x10
jb 0x1004072b
mov ecx, dword [eax]
jmp 0x1004072d
mov ecx, eax
mov eax, dword [eax + 0x10]
add eax, ecx
cmp esi, eax
je 0x10040bba
push 1
lea ecx, [esp + 0xc8]
call fcn.100243cd
mov dword [esp + 0x15c], 1
lea edx, [esp + 0xc4]
mov dword [esp + 0x50], 6
lea ecx, [esp + 0xf4]
mov dword [esp + 0x94], ebx
call fcn.1004004b
mov dword [esp + 0x20], 0x1d08
cmp dword [esp + 0x20], 0xe0b
jge 0x100407eb
lea eax, [esp + 0xa8]
push eax
push ecx
lea eax, [esp + 0xa0]
mov ecx, 0x10656e70
push eax
call fcn.1003e109
pop ecx
mov ecx, eax
call fcn.1003e109
mov eax, dword [esp + 0x98]
push 6
pop edx
lea ecx, [eax + eax]
imul eax, dword [esp + 0xa8], 3
cmp ecx, edx
jl 0x100407d9
cmp edx, eax
jg 0x100407d9
cmp ecx, eax
jg 0x100407d0
add ecx, 2
jmp 0x100407d2
add eax, edi
add edx, 6
cmp edx, ecx
jle 0x100407c3
cmp ecx, eax
cmovg eax, ecx
push eax
call fcn.1003e21e
push eax
call fcn.100287ed
pop ecx
mov eax, dword [esp + 0xc4]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc4]
mov dword [eax], ebx
lea eax, [esp + 0x94]
push eax
call fcn.1004006a
or dword [esp + 0x160], 0xffffffff
pop ecx
lea ecx, [esp + 0xc4]
call fcn.100244a4
mov al, byte [esi]
cmp al, 0x30
jl 0x100408da
cmp al, 0x39
jg 0x100408da
push 2
lea ecx, [esp + 0xe0]
call fcn.100243cd
mov dword [esp + 0x20], ebx
lea edx, [esp + 0xdc]
mov dword [esp + 0x20], 0x48aa25e9
lea ecx, [esp + 0x28]
call fcn.10040095
mov dword [esp + 0x28], ebx
jmp 0x10040876
mov eax, dword [esp + 0x28]
mov dword [esp + eax*4 + 0xa4], 4
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 1
jl 0x10040863
mov dword [esp + 0x28], ebx
jmp 0x10040896
mov eax, dword [esp + 0x28]
mov dword [esp + eax*4 + 0x140], 0x9c819b53
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 4
jl 0x10040883
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0xdc]
or dword [esp + 0x15c], 0xffffffff
mov dword [eax + 4], 0x11
call fcn.100244a4
mov edx, dword [esp + 0x40]
movsx eax, byte [esi]
imul ecx, dword [edx], 0xa
add ecx, 0xffffffd0
add eax, ecx
inc esi
mov dword [edx], eax
mov eax, dword [esp + 0x2c]
jmp 0x10040721
push 0x2ac0
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.10040ede
add esp, 0xc
mov dword [esp + 0x2c], 0xe42a43d9
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xd0]
mov dword [esp + 0x20], 0x9f58382b
push edi
call fcn.100243cd
mov dword [esp + 0x34], 0xa1405524
mov dword [esp + 0x34], 0xaac8
mov dword [esp + 0x10], ebx
jmp 0x1004093b
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x134], 0xc48b1647
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jl 0x10040928
mov dword [esp + 0x10], ebx
jmp 0x1004095d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xd0]
mov dword [eax + ecx*4], 0x20f746e3
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jl 0x10040947
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov edx, 0xae7b79f6
mov dword [esp + 0x134], edx
mov eax, dword [esp + 0x20]
cmp eax, edx
mov edx, 0x80d416db
setge cl
sub ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
neg ecx
sbb ecx, ecx
inc ecx
cmp edx, eax
sbb eax, eax
inc eax
add ecx, eax
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0xd0]
sub ecx, 0x7af5af8b
cmp ecx, 0xa2b82c44
sbb ecx, ecx
inc ecx
mov dword [eax + 4], ecx
lea ecx, [esp + 0x33]
mov dword [esp + 0x34], 1
mov byte [esp + 0x33], bl
call fcn.100400b4
lea ecx, [esp + 0xd0]
call fcn.100244a4
push dword [esp + 0xa4]
movdqa xmm0, xmmword [0x10007e70]
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x12c]
mov dword [esp + 0x4c], ebx
push eax
push ebx
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], ebx
movdqu xmmword [esp + 0x134], xmm0
mov dword [esp + 0x5c], ebx
call fcn.100297be
mov dword [esp + 0x15c], edi
mov esi, 0xbd085c9e
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], 0xfffffffc
mov dword [esp + 0x2c], ebx
mov dword [eax], ebx
push edi
lea ecx, [esp + 0x58]
call fcn.100243cd
mov dword [esp + 0x10], 0x5043c4ab
lea edx, [esp + 0x54]
lea ecx, [esp + 0x100]
call fcn.100400e7
mov dword [esp + 0x10], 2
cmp dword [esp + 0x10], ebx
jl 0x10040b90
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x14], 0xc4a87fce
mov dword [esp + 0x74], 2
cmp dword [esp + 0x74], ebx
jl 0x10040aee
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
cmp dword [eax + ecx*4], ebx
jne 0x10040ab7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
imul ecx, dword [eax + ecx*4], 9
mov eax, dword [esp + 0x44]
cmp dword [eax], ecx
jne 0x10040ab7
mov ecx, ebx
jmp 0x10040aba
xor ecx, ecx
inc ecx
mov edx, dword [esp + 0x74]
xor eax, eax
cmp ecx, 0xfffffffe
setne al
xor ecx, ecx
cmp eax, 0x1f145ba1
mov eax, dword [esp + 0x54]
setg cl
mov dword [eax + edx*4], ecx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
neg ecx
mov dword [eax + edx*4], ecx
dec dword [esp + 0x74]
jns 0x10040a92
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], edi
jg 0x10040b86
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x54]
lea edi, [edx + 8]
mov edx, dword [edx]
xor eax, eax
cmp dword [esi + 4], ebx
setne al
mov dword [esp + 0x20], eax
xor eax, eax
cmp edx, dword [edi]
setg al
xor ecx, ecx
cmp eax, 0x1d976d9
setne cl
xor eax, eax
cmp edx, ecx
setg al
xor ecx, ecx
cmp dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
sete cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x14]
setne dl
xor ecx, ecx
mov eax, dword [esp + eax*4 + 0x74]
cmp eax, edx
setg cl
xor eax, eax
inc eax
sub eax, ecx
xor ecx, ecx
cmp eax, 0xac8e
mov eax, dword [esp + 0x10]
setg cl
mov dword [esp + eax*4 + 0x78], ecx
mov eax, dword [esp + 0x54]
mov dword [eax], ecx
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 3
jg 0x10040b7e
mov edx, dword [esp + 0x44]
jmp 0x10040b07
push 3
mov esi, 0xbd085c9e
pop edi
dec dword [esp + 0x10]
jns 0x10040a69
lea ecx, [esp + 0x54]
call fcn.100244a4
mov eax, dword [esp + 0x44]
dec dword [eax]
cmp dword [eax], 0xffffffe6
jne 0x10040a35
dec dword [esp + 0x2c]
lea ecx, [esp + 0x44]
call fcn.100244a4
jmp 0x10040166
mov dword [esp + 0x14], 0xfffffff9
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], 0xfffffff1
jmp 0x10040d02
mov dword [esp + 0x1c], 0xd444182b
mov dword [esp + 0x10], 4
mov dword [esp + 0x1c], 0xfffffffd
jmp 0x10040cf3
or eax, 0xffffffff
lea ecx, [esp + 0x104]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
push edi
call fcn.100243cd
lea edx, [esp + 0x104]
lea ecx, [esp + 0x110]
call fcn.10040106
mov dword [esp + 0x64], 0x14
jmp 0x10040cbf
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0xdfa0148
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
dec edx
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp eax, edx
mov eax, dword [esp + 0x64]
setl cl
xor edx, edx
add ecx, 0x137f0de7
cmp ecx, 0xfdd8
setge dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x20]
setg cl
mov dword [esp + 0x34], ecx
xor ecx, ecx
cmp dword [esp + 0x34], eax
setle cl
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0x18
jmp 0x10040cb4
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10040cac
call fcn.10040125
mov eax, dword [esp + 0x2c]
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xfffffff7
jl 0x10040c9c
dec dword [esp + 0x64]
cmp dword [esp + 0x64], 0xffffffe3
jle 0x10040c30
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x104]
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.100244a4
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 5
jle 0x10040bf0
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x17
jne 0x10040bd3
mov al, 1
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret