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

Disassembly:
sub esp, 0xa4
mov eax, 0x38e38e39
push ebx
push ebp
push esi
mov esi, edx
mov ebx, ecx
sub edx, ebx
imul edx
push edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x20
jle 0x10040ba3
mov ebp, dword [esp + 0xb8]
test ebp, ebp
jle 0x10040bc6
push dword [esp + 0xbc]
mov edx, ebx
lea ecx, [esp + 0x18]
push esi
call fcn.10040dd0
mov eax, ebp
mov ecx, esi
sub ecx, dword [esp + 0x20]
add esp, 8
sar eax, 2
sar ebp, 1
add ebp, eax
mov eax, 0x38e38e39
imul ecx
mov ecx, dword [esp + 0x14]
mov eax, 0x38e38e39
push dword [esp + 0xbc]
sar edx, 5
sub ecx, ebx
mov edi, edx
shr edi, 0x1f
add edi, edx
imul ecx
push ebp
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jge 0x10040b73
mov edx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.10040ad0
mov ebx, dword [esp + 0x20]
jmp 0x10040b82
mov ecx, dword [esp + 0x20]
mov edx, esi
call fcn.10040ad0
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov eax, 0x38e38e39
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x20
jg 0x10040b01
cmp eax, 2
jl 0x10040bbb
push dword [esp + 0xbc]
mov edx, esi
mov ecx, ebx
call fcn.100411d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret
cmp eax, 0x20
jle 0x10040ba3
sub esi, ebx
mov eax, 0x38e38e39
imul esi
mov dword [esp + 0x14], esi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, edi
sar eax, 1
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x10040d27
mov esi, eax
lea ebp, [esi + esi*8]
shl ebp, 4
add ebp, 0x10
add ebp, ebx
nop
mov eax, dword [ebp - 0xa0]
lea ebp, [ebp - 0x90]
mov dword [esp + 0x20], eax
dec esi
mov eax, dword [ebp - 0xc]
mov edx, esi
mov dword [esp + 0x24], eax
mov ecx, ebx
mov eax, dword [ebp - 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp], 0
movups xmm0, xmmword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 4]
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x34], eax
movups xmm0, xmmword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x44]
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x74], eax
xor eax, eax
movups xmm0, xmmword [ebp + 0x2c]
movups xmmword [esp + 0x5c], xmm0
movq xmm0, qword [ebp + 0x3c]
movq qword [esp + 0x6c], xmm0
movups xmm0, xmmword [ebp + 0x48]
movups xmmword [esp + 0x78], xmm0
movq xmm0, qword [ebp + 0x58]
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
movq qword [esp + 0x88], xmm0
movups xmm0, xmmword [ebp + 0x60]
movups xmmword [esp + 0x90], xmm0
movq xmm0, qword [ebp + 0x70]
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
mov eax, dword [ebp + 0x78]
push dword [esp + 0xbc]
mov dword [esp + 0xac], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x24]
push eax
push edi
movq qword [esp + 0xac], xmm0
call fcn.100418a0
add esp, 0xc
lea ecx, [esp + 0x90]
call fcn.1001a5a0
lea ecx, [esp + 0x78]
call fcn.1001a5a0
lea ecx, [esp + 0x28]
call fcn.1003f4c0
test esi, esi
jg 0x10040c00
mov esi, dword [esp + 0x14]
cmp edi, 2
jl 0x10040bbb
cmp edi, 2
jl 0x10040d9d
lea edi, [esi - 0x90]
add edi, ebx
lea ecx, [esp + 0x20]
push edi
call sym.WMCommon.dll_public:_void___thiscall_WM::CWindowBaseInfo::constructor_class_WM::CWindowBaseInfo__
push ebx
mov ecx, edi
call sym.WMCommon.dll_public:_class_WM::CWindowBaseInfo____thiscall_WM::CWindowBaseInfo::operator_class_WM::CWindowBaseInfo__
push dword [esp + 0xbc]
lea eax, [esp + 0x24]
push eax
lea ecx, [esi - 0x90]
mov eax, 0x38e38e39
imul ecx
mov ecx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
xor edx, edx
push eax
call fcn.100418a0
add esp, 0xc
lea ecx, [esp + 0x90]
call fcn.1001a5a0
lea ecx, [esp + 0x78]
call fcn.1001a5a0
lea ecx, [esp + 0x28]
call fcn.1003f4c0
sub esi, 0x90
mov eax, 0x38e38e39
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
cmp eax, 2
jge 0x10040d30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret