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

Disassembly:
sub esp, 0x88
mov eax, dword [0x6eed24]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edi
mov dword [esp + 0x40], edi
neg ebp
push 0xfffffffffffffff0
lea eax, [edi - 0x20]
sbb ebp, ebp
and ebp, eax
mov dword [esp + 0x3c], ebp
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x411707
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x411707
mov ecx, dword [edi + 0x18]
cmp ecx, 0xffffffff
je 0x411707
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x14], esi
cmp esi, eax
jge 0x4116f2
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x18], ebx
cmp ebx, ecx
jge 0x41171d
mov dword [esp + 0x18], ecx
jmp 0x41171d
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], eax
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x50], eax
test eax, eax
je 0x41173f
push 0
push 0
push 0xb
push dword [ebp + 4]
call esi
mov ebx, dword [edi + 4]
xor eax, eax
mov dword [esp + 0x1c], eax
test ebx, ebx
jle 0x411d69
mov edx, ebx
test eax, eax
js 0x411da8
cmp eax, edx
jge 0x411da8
mov edi, dword [edi]
lea esi, [eax + eax*2]
shl esi, 3
add edi, esi
mov dword [esp + 0x10], esi
mov eax, dword [edi + 4]
test eax, 0x1000
je 0x411c25
mov ebp, dword [edi + 0xc]
shr eax, 0x10
movzx ecx, al
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
cmp ecx, 1
jbe 0x411824
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 0x24]
mov edi, dword [esp + 0x24]
inc ecx
lea ecx, [ecx]
test ecx, ecx
js 0x411da8
cmp ecx, edx
jge 0x411da8
mov esi, dword [eax - 4]
cmp dword [esp + 0x20], esi
jl 0x4117dd
mov dword [esp + 0x20], esi
mov esi, dword [eax]
cmp ebp, esi
jl 0x4117e9
mov ebp, esi
mov dword [esp + 0x30], ebp
mov esi, dword [eax + 4]
cmp dword [esp + 0x2c], esi
jg 0x4117f6
mov dword [esp + 0x2c], esi
mov esi, dword [eax + 8]
cmp edi, esi
jg 0x41180d
cmp ecx, ebx
jge 0x411da8
mov dword [esp + 0x24], esi
mov edx, ebx
mov edi, esi
mov esi, dword [esp + 0x28]
inc ecx
inc esi
add eax, 0x18
mov dword [esp + 0x28], esi
cmp esi, dword [esp + 0x3c]
jl 0x4117c0
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x4c], ecx
test edx, edx
je 0x411c19
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov edi, edi
mov dword [esp + 0x34], 0
test ecx, ecx
jle 0x411873
add eax, 0xffffffff
js 0x411da8
mov edx, dword [esp + 0x40]
cmp eax, dword [edx + 4]
jge 0x411da8
mov eax, dword [edx]
add eax, 0xffffffe8
add eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
jmp 0x411877
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
lea esi, [edi + 0x20]
mov dword [esp + 0x48], esi
test ecx, ecx
js 0x411da8
cmp eax, dword [edx + 4]
jge 0x411da8
mov ebx, dword [edx]
xor eax, eax
mov ebp, esi
mov dword [esp + 0x54], eax
neg ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
push dword [ecx + ebx]
sbb ebp, ebp
mov dword [esp + 0x64], eax
and ebp, edi
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x411bf0
push 2
lea eax, [esp + 0x58]
push eax
push dword [ebp + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + ebx + 4]
test dl, 0x20
je 0x411927
mov ecx, dword [eax + ebx + 0x10]
sub ecx, dword [eax + ebx + 8]
mov eax, dword [esp + 0x2c]
sub eax, dword [esi + 0xc]
sub eax, ecx
sub eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
mov eax, eax
test eax, eax
jns 0x411916
add eax, 1
sar eax, 1
add eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
add eax, ecx
jmp 0x411a44
test dl, 5
je 0x411a4c
mov edx, dword [esp + 0x2c]
mov eax, edx
mov ecx, dword [esp + 0x20]
sub eax, ecx
sub edx, dword [esi + 0xc]
push eax
mov dword [esp + 0x48], eax
sub edx, ecx
mov eax, dword [esp + 0x14]
add edx, dword [esp + 0x18]
push edx
mov eax, dword [eax + ebx + 8]
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov dword [esp + 0x54], eax
mov edx, dword [edx + ebx + 4]
test dl, 1
je 0x411a38
mov eax, dword [esp + 0x2c]
sub eax, dword [esi + 0xc]
push dword [esp + 0x44]
sub eax, ecx
add eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ebx + 0x10]
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [esp + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x411a2e
push dword [eax]
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x74]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x78]
push eax
push dword [ebp + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x78]
push 0x16
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x14]
sub edx, dword [eax + ebx + 8]
mov eax, dword [esp + 0x84]
add edx, dword [esp + 0x58]
sub eax, ecx
push eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x84], edx
sub edx, eax
push edx
push ecx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + ebx + 4]
jmp 0x411a4c
mov ecx, dword [esp + 0x10]
sub eax, dword [ecx + ebx + 8]
add eax, dword [ecx + ebx + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
test dl, 0x40
je 0x411a84
mov ecx, dword [eax + ebx + 0x14]
sub ecx, dword [eax + ebx + 0xc]
mov eax, dword [esp + 0x24]
sub eax, dword [esi + 0x10]
sub eax, ecx
sub eax, dword [esp + 0x30]
add eax, dword [esp + 0x18]
mov eax, eax
test eax, eax
jns 0x411a73
add eax, 1
sar eax, 1
add eax, dword [esp + 0x30]
mov dword [esp + 0x58], eax
add eax, ecx
jmp 0x411bac
test dl, 0xa
je 0x411bb0
mov edx, dword [esp + 0x24]
mov eax, edx
mov ecx, dword [esp + 0x30]
sub eax, ecx
sub edx, dword [esi + 0x10]
push eax
mov dword [esp + 0x48], eax
sub edx, ecx
mov eax, dword [esp + 0x14]
add edx, dword [esp + 0x1c]
push edx
mov eax, dword [eax + ebx + 0xc]
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x10]
add eax, dword [esp + 0x30]
mov dword [esp + 0x58], eax
mov edx, dword [ecx + ebx + 4]
test dl, 2
je 0x411ba4
mov eax, dword [esp + 0x24]
sub eax, dword [esi + 0x10]
mov esi, dword [esp + 0x30]
sub eax, esi
push dword [esp + 0x44]
add eax, dword [esp + 0x1c]
push eax
mov eax, dword [ecx + ebx + 0x14]
sub eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, esi
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x411b9a
push dword [eax]
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xor eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
lea eax, [esp + 0x84]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x88]
push eax
push dword [ebp + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x88]
push 0x16
mov ecx, dword [eax + 0x14]
mov eax, dword [esp + 0x14]
sub ecx, dword [eax + ebx + 0xc]
mov eax, dword [esp + 0x5c]
add eax, ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x94], eax
sub eax, edx
push eax
mov eax, dword [esp + 0x94]
sub eax, ecx
push eax
push edx
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [esp + 0x10]
mov edx, dword [esi + ebx + 4]
jmp 0x411bb4
sub eax, dword [ecx + ebx + 0xc]
add eax, dword [ecx + ebx + 0x14]
mov dword [esp + 0x60], eax
mov esi, dword [esp + 0x10]
test dl, 0x10
je 0x411bc8
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + ebx + 4]
test dl, 0x7f
je 0x411bf0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
sub eax, edx
mov ecx, dword [esp + 0x54]
push 0x14
push eax
mov eax, dword [esp + 0x64]
sub eax, ecx
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
inc ecx
mov esi, dword [esp + 0x10]
inc eax
mov edx, dword [esp + 0x3c]
add esi, 0x18
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], esi
cmp ecx, edx
jl 0x411840
mov eax, dword [esp + 0x1c]
dec eax
add eax, edx
jmp 0x411d49
push dword [edi]
xor eax, eax
lea ebx, [ebp + 0x20]
neg ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
sbb ebx, ebx
mov dword [esp + 0x70], eax
and ebx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x64]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x411d45
push 2
lea eax, [esp + 0x68]
push eax
push dword [ebx + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ebx, dword [edi + 4]
test bl, 0x20
je 0x411c9a
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 8]
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x64], eax
add eax, ecx
mov dword [esp + 0x6c], eax
jmp 0x411cc1
test bl, 5
je 0x411cc1
mov ecx, dword [edi + 0x10]
mov eax, ecx
sub eax, dword [ebp + 0x2c]
mov edx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x6c], edx
test bl, 4
je 0x411cc1
mov eax, dword [edi + 8]
sub eax, ecx
add eax, edx
mov dword [esp + 0x64], eax
test bl, 0x40
je 0x411ce3
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x18]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x68], eax
add eax, ecx
mov dword [esp + 0x70], eax
jmp 0x411d0a
test bl, 0xa
je 0x411d0a
mov ecx, dword [edi + 0x14]
mov eax, ecx
sub eax, dword [ebp + 0x30]
mov edx, dword [esp + 0x18]
add edx, eax
mov dword [esp + 0x70], edx
test bl, 8
je 0x411d0a
mov eax, dword [edi + 0xc]
sub eax, ecx
add eax, edx
mov dword [esp + 0x68], eax
test bl, 0x10
je 0x411d1d
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, dword [edi + 4]
test bl, 0x7f
je 0x411d45
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
sub eax, edx
mov ecx, dword [esp + 0x64]
push 0x14
push eax
mov eax, dword [esp + 0x74]
sub eax, ecx
push eax
push edx
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
inc eax
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov ebx, dword [edi + 4]
mov edx, ebx
cmp eax, ebx
jl 0x411752
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x50], 0
je 0x411d7b
push 0
push 1
push 0xb
push dword [ebp + 4]
call esi
push 0x185
push 0
push 0
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b2558
add esp, 0x88
ret 8
push 1
push 0xc000008c
call fcn.00408020
int3