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

Disassembly:
sub esp, 0x70
mov eax, dword [0x6eed24]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push edi
mov edi, ecx
mov ebx, edi
neg ebx
push 0xfffffffffffffff0
lea eax, [edi - 0x20]
sbb ebx, ebx
and ebx, eax
mov dword [esp + 0x2c], ebx
push dword [ebx + 4]
call esi
mov ebp, eax
mov ecx, ebp
and ecx, dword [esp + 0x8c]
cmp ecx, dword [esp + 0x8c]
je 0x418a44
push 0xfffffffffffffff0
push dword [ebx + 4]
call esi
mov ecx, eax
or ecx, dword [esp + 0x8c]
cmp eax, ecx
je 0x418a44
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
and ebp, 0x40000000
jne 0x418a89
push 0xffffffffffffffec
push dword [ebx + 4]
call esi
mov ecx, eax
or ecx, 1
cmp eax, ecx
je 0x418a68
push ecx
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x7f
push dword [ebx + 4]
call esi
test eax, eax
jne 0x418a89
push eax
push eax
push 0x80
push dword [ebx + 4]
call esi
push 0xe801
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418abc
cmp dword [edi + 4], 0
jle 0x418abc
mov eax, dword [edi]
test dword [eax + 4], 0x4000
je 0x418abc
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi]
test eax, eax
je 0x418ad1
push eax
call fcn.004b936c
add esp, 4
mov dword [edi], 0
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
xor eax, eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x6c]
push eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xffffffff
mov dword [edi + 0x18], 0xffffffff
push dword [ebx + 4]
call esi
cmp byte [esp + 0x84], 0
mov eax, dword [esp + 0x74]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x10], eax
mov byte [edi + 0x1c], 0
je 0x418c19
push 0xe801
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x418c19
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x70]
sub edx, esi
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x6c]
sub eax, ecx
push 0
push dword [0x6f8c60]
push 0xe801
push dword [ebx + 4]
push edx
push eax
push esi
push ecx
push 0x5400001c
push 0
push str.SCROLLBAR
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418c13
xor eax, eax
mov byte [edi + 0x1c], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x60]
push eax
push dword [ebx + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x5c]
mov ecx, edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0xe801
mov dword [esp + 0x34], 0x401c
call fcn.00411180
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esp + 0x88], 0
je 0x418c62
mov eax, dword [ebx + 4]
xor ecx, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x5c]
push ecx
push eax
test ebp, ebp
je 0x418c46
call esi
jmp 0x418c4c
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov dword [edi + 0x18], eax
or esi, 0xffffffff
mov ebp, 0x64eefc
lea ebx, [ebx]
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x418cd9
mov eax, dword [ebp]
test eax, eax
je 0x418df9
cmp eax, 0x1000
je 0x418ccd
cmp eax, 0x2000
jne 0x418ded
test esi, esi
js 0x418e0e
mov edx, dword [edi + 4]
cmp esi, edx
jge 0x418e0e
mov eax, dword [edi]
lea ecx, [esi + esi*2]
mov ebx, dword [esp + 0x28]
sub edx, esi
shl edx, 0x10
or esi, 0xffffffff
and edx, 0xff0000
mov byte [eax + ecx*8 + 6], 0
or dword [eax + ecx*8 + 4], edx
add ebp, 8
jmp 0x418c70
mov esi, dword [edi + 4]
add ebp, 8
mov ebx, dword [esp + 0x28]
jmp 0x418c70
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x60]
push eax
push dword [ebx + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [edi + 4]
cmp esi, 0xffffffff
je 0x418d26
cmp edx, esi
jne 0x418d26
mov eax, 0x1000
jmp 0x418d28
xor eax, eax
mov ebx, dword [ebp]
mov ecx, dword [ebp - 4]
or ebx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], eax
cmp edx, ecx
jne 0x418db3
mov eax, dword [edi]
lea ebx, [esp + 0x44]
cmp ebx, eax
jb 0x418d7f
mov ebx, dword [edi]
lea eax, [ecx + ecx*2]
lea eax, [ebx + eax*8]
lea ebx, [esp + 0x44]
cmp ebx, eax
jb 0x418e1a
mov eax, dword [edi]
test ecx, ecx
jne 0x418d88
lea ebx, [ecx + 1]
jmp 0x418d97
lea ebx, [edx + edx]
test ebx, ebx
js 0x418ded
cmp ebx, 0x5555555
ja 0x418ded
push 0x18
push ebx
push eax
call fcn.004b97ac
add esp, 0xc
test eax, eax
je 0x418ded
mov edx, dword [edi + 4]
mov dword [edi + 8], ebx
mov ebx, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [edi]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
test eax, eax
je 0x418de7
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x14], ecx
mov edx, dword [edi + 4]
lea eax, [edx + 1]
mov dword [edi + 4], eax
mov ebx, dword [esp + 0x28]
add ebp, 8
jmp 0x418c70
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b2558
add esp, 0x70
ret 0xc
push 1
push 0xc000008c
call fcn.00408020
push 0x80004005
call fcn.00408330
int3