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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
push 0xa
pop ecx
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x1c]
push edi
lea esi, [esp + 0x30]
mov dword [esp + 0x30], 0x2c
call fcn.18809b7c
test eax, eax
jne 0x18809452
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x578
je 0x1880986d
and dword [esp + 0x60], 0
and dword [esp + 0x6c], 0
mov dword [esp + 0x64], str.ButtonWndInproc.cpp
mov dword [esp + 0x68], 0x4da
call esi
push 5
pop ecx
mov dword [esp + 0x70], eax
push 0x18836bec
lea eax, [esp + 0x78]
lea esi, [esp + 0x64]
lea edi, [esp + 0x78]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.1881d33f
mov ecx, dword [edi + 0x70]
cmp byte [ecx + 0x244e], 0
mov esi, 0x7fffffff
mov byte [esp + 0xd], 0
je 0x188094db
push 2
xor esi, esi
pop eax
test dword [esp + eax*4 + 0x40], 0x18000
jne 0x18809478
inc esi
inc eax
cmp eax, 6
jb 0x1880946d
test esi, esi
setg byte [esp + 0xd]
and dword [esp + 0x10], 0
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
mov ecx, dword [eax + 0x70]
mov ecx, dword [ecx + 0x2468]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push 0
call dword [edx + 0x10]
mov eax, dword [esp + 0x10]
imul eax, esi
mov esi, dword [esp + 0x38]
mov edi, dword [ebp + 8]
sub esi, eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
sar ebx, 1
add ebx, dword [esp + 0x34]
and dword [eax + 4], 0
jmp 0x18809736
cmp byte [ecx + 0x2449], 0
jne 0x188094ed
cmp byte [ecx + 0x244d], 0
je 0x188094fa
cmp byte [ecx + 0x244a], 0
je 0x188095f6
push 2
xor edx, edx
pop eax
test dword [esp + eax*4 + 0x40], 0x18000
jne 0x1880950a
inc edx
inc eax
cmp eax, 6
jb 0x188094ff
mov esi, dword [esp + 0x38]
mov eax, ecx
mov ebx, dword [eax + 0x2458]
test edx, edx
setg byte [esp + 0xd]
imul ebx, edx
sub esi, ebx
cmp byte [eax + 0x2448], 0
je 0x18809537
add esi, dword [ecx + 0x2460]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ecx + 0x2464]
mov ecx, dword [ebp + 0xc]
sar ebx, 1
add ebx, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x70]
cmp byte [eax + 0x244c], 0
je 0x18809736
push 0x88
lea eax, [esp + 0x90]
push 0
push eax
call fcn.18819090
add esp, 0xc
lea eax, [esp + 0x88]
push eax
push 0
push 0x33f
push dword [edi + 0x1c]
mov dword [esp + 0x98], 0x8c
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x70]
cmp byte [eax + 0x244c], 0
je 0x188095d6
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_PhysicalToLogicalPoint]
mov eax, dword [esp + 0x14]
jmp 0x188095dd
mov eax, dword [esp + 0x90]
cmp eax, dword [esp + 0x34]
jle 0x18809736
sub eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0xc]
add dword [ecx + 4], eax
jmp 0x18809736
push 0x88
lea eax, [esp + 0x90]
push 0
push eax
call fcn.18819090
add esp, 0xc
lea eax, [esp + 0x88]
push eax
push 0
push 0x33f
push dword [edi + 0x1c]
mov dword [esp + 0x98], 0x8c
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
imul eax, eax, 3
mov dword [esp + 0x5c], eax
mov dword [esp + 0x18], 2
lea ebx, [esp + 0xdc]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + eax*4 + 0x9c]
mov dword [esp + 0x58], eax
mov eax, dword [ebx - 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx - 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x70]
cmp byte [eax + 0x244c], 0
je 0x188096a0
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_PhysicalToLogicalPoint]
lea eax, [esp + 0x24]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_PhysicalToLogicalPoint]
test dword [esp + 0x58], 0x18000
jne 0x188096e3
lea eax, [ebx - 8]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x188096e3
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x5c]
jge 0x188096e3
cmp dword [esp + 0x10], esi
jge 0x188096e3
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov byte [esp + 0xd], 1
inc dword [esp + 0x18]
add ebx, 0x10
cmp dword [esp + 0x18], 6
jb 0x1880964e
mov eax, dword [ebp + 0xc]
cmp esi, 0x7fffffff
jne 0x18809708
mov esi, dword [esp + 0x38]
and dword [eax + 4], 0
mov ecx, dword [edi + 0x70]
cmp byte [ecx + 0x244e], 0
je 0x1880971a
and dword [eax + 4], 0
jmp 0x18809723
cmp byte [ebp + 0x10], 0
je 0x18809723
dec dword [eax + 4]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, dword [esp + 0x34]
lea eax, [esi - 1]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x50]
add eax, dword [esp + 0x30]
and dword [esp + 0x18], 0
mov byte [esp + 0xe], 0
mov dword [esp + 0x24], eax
mov byte [esp + 0xf], 1
jmp 0x1880975d
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x10], eax
jl 0x188097e7
movzx ecx, word [esp + 0x10]
movzx eax, bx
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x84
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x70]
cmp byte [ecx + 0x244d], 0
je 0x188097b8
cmp byte [esp + 0xd], 0
je 0x188097b8
cmp byte [esp + 0xf], 0
je 0x188097b8
cmp eax, 0x14
je 0x188097d4
cmp eax, 0x15
je 0x188097d4
cmp eax, 9
je 0x188097d4
cmp eax, 8
je 0x188097d4
mov byte [esp + 0xf], 0
test eax, eax
je 0x188097e7
cmp eax, 2
je 0x188097d4
cmp eax, 1
je 0x188097d4
mov esi, dword [esp + 0x10]
and dword [esp + 0x18], 0
mov byte [esp + 0xe], 1
inc dword [esp + 0x18]
dec dword [esp + 0x10]
cmp dword [esp + 0x18], 0x32
jl 0x18809759
cmp byte [esp + 0xe], 0
je 0x18809809
mov eax, dword [edi + 0x70]
mov eax, dword [eax + 0x2450]
neg eax
lea esi, [esi + eax*2]
mov eax, dword [edi + 0x50]
add eax, dword [esp + 0x30]
cmp esi, eax
jge 0x18809809
mov esi, eax
mov ecx, dword [edi + 0x70]
xor eax, eax
lea ebx, [esp + 0x20]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 0x2468]
mov edx, dword [ecx]
lea ebx, [esp + 0x20]
push ebx
push eax
call dword [edx + 0xc]
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx + 0x1320]
cmp eax, 0xffffffff
jne 0x1880983e
mov eax, dword [esp + 0x1c]
movsx ecx, word [ecx + 0x2488]
add eax, ecx
cmp byte [ebp + 0x10], 0
je 0x18809857
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [ebp + 0xc]
sub eax, esi
add eax, dword [esp + 0x38]
mov dword [ecx], eax
sub eax, dword [edi + 0x48]
mov dword [ecx], eax
mov eax, dword [edi + 0x4c]
sub dword [ecx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc