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

Disassembly:
sub esp, 0x78
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov dword [esp + 0x28], ebp
je 0x42b85f
lea edi, [ebp - 0x9c]
mov dword [esp + 0x10], edi
jmp 0x42b865
mov dword [esp + 0x10], ebx
mov edi, ebx
mov eax, dword [edi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x42b8a8
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x42b8a8
mov ecx, dword [ebp + 0x18]
cmp ecx, 0xffffffff
je 0x42b8a8
cmp dword [esp + 0x8c], eax
jge 0x42b898
mov dword [esp + 0x8c], eax
cmp dword [esp + 0x90], ecx
jge 0x42b8a8
mov dword [esp + 0x90], ecx
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x34], esi
je 0x42b8ca
mov edx, dword [edi + 4]
push ebx
push ebx
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 4]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x42bd46
mov eax, dword [ebp]
lea esi, [ebx + ebx*2]
shl esi, 3
lea ecx, [esi + eax]
mov eax, dword [esi + eax + 4]
test ah, 0x10
je 0x42bcf4
lea edx, [ecx + 8]
shr eax, 0x10
mov edi, dword [edx]
and eax, 0xff
mov dword [esp + 0x38], edi
cmp eax, 1
mov edi, dword [edx + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], edi
mov edi, dword [edx + 8]
mov dword [esp + 0x40], edi
mov edx, dword [edx + 0xc]
mov dword [esp + 0x44], edx
jle 0x42b960
add ecx, 0x24
lea edi, [eax - 1]
mov edx, dword [ecx - 4]
cmp dword [esp + 0x38], edx
jl 0x42b934
mov dword [esp + 0x38], edx
mov edx, dword [ecx]
cmp dword [esp + 0x3c], edx
jl 0x42b940
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 4]
cmp dword [esp + 0x40], edx
jg 0x42b94d
mov dword [esp + 0x40], edx
mov edx, dword [ecx + 8]
cmp dword [esp + 0x44], edx
jg 0x42b95a
mov dword [esp + 0x44], edx
add ecx, 0x18
dec edi
jne 0x42b927
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x42bce4
mov eax, esi
mov dword [esp + 0x20], eax
jmp 0x42b980
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
xor edi, edi
test ecx, ecx
jle 0x42b991
mov ecx, dword [ebp]
lea edi, [ecx + eax - 0x18]
mov edx, dword [esp + 0x10]
mov esi, dword [ebp]
add esi, eax
lea ebp, [edx + 0x9c]
test ebp, ebp
je 0x42b9ac
lea ebx, [ebp - 0x9c]
jmp 0x42b9ae
xor ebx, ebx
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [esi]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0x48]
mov dword [esp + 0x18], eax
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x42bcba
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x48]
push 2
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test al, 0x20
je 0x42ba35
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0xc]
mov ebp, dword [esp + 0x38]
sub ecx, eax
mov eax, dword [esp + 0x40]
sub eax, edx
mov edx, dword [esp + 0x8c]
sub eax, ecx
sub eax, ebp
add eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, ebp
mov dword [esp + 0x48], eax
jmp 0x42bb35
test al, 5
je 0x42bb3b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
sub edx, dword [ecx + 0xa8]
add ecx, 0x9c
mov ecx, dword [esp + 0x8c]
sub ebp, eax
sub edx, eax
push ebp
add edx, ecx
push edx
mov edx, dword [esi + 8]
sub edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x38]
mov dl, byte [esi + 4]
add eax, ecx
test dl, 1
mov dword [esp + 0x48], eax
je 0x42bb2d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
add eax, 0x9c
push ebp
mov ebp, dword [eax + 0xc]
mov eax, dword [esp + 0x90]
sub edx, ebp
sub edx, ecx
add edx, eax
push edx
mov edx, dword [esi + 0x10]
sub edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [esp + 0x38]
test edi, edi
mov dword [esp + 0x50], eax
je 0x42bb3b
mov eax, dword [edi]
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
lea edx, [esp + 0x58]
mov dword [esp + 0x5c], ecx
push edx
mov dword [esp + 0x64], ecx
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x58]
push 2
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [edi + 0x10]
mov eax, dword [esi + 8]
mov ebp, dword [esp + 0x48]
sub edx, eax
lea eax, [esp + 0x58]
push 0x16
add edx, ebp
push eax
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], edx
call fcn.00417640
jmp 0x42bb3b
mov ecx, dword [esi + 0x10]
mov ebp, dword [esi + 8]
sub ecx, ebp
add ecx, eax
mov dword [esp + 0x50], ecx
mov eax, dword [esi + 4]
test al, 0x40
je 0x42bb87
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x14]
mov ebx, dword [esi + 0xc]
mov eax, dword [esp + 0x44]
mov edi, dword [edx + 0xac]
add edx, 0x9c
mov edx, dword [esp + 0x90]
sub ecx, ebx
sub eax, edi
mov edi, dword [esp + 0x3c]
sub eax, ecx
sub eax, edi
add eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, edi
mov dword [esp + 0x4c], eax
add eax, ecx
mov dword [esp + 0x54], eax
jmp 0x42bc8d
test al, 0xa
je 0x42bc8d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x44]
add ecx, 0x9c
sub edx, eax
sub ebp, eax
sub edx, dword [ecx + 0x10]
mov ecx, dword [esp + 0x90]
push ebp
add edx, ecx
push edx
mov edx, dword [esi + 0xc]
sub edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x3c]
mov dl, byte [esi + 4]
add eax, ecx
test dl, 2
mov dword [esp + 0x4c], eax
je 0x42bc7f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
add eax, 0x9c
push ebp
sub edx, ecx
mov ebp, dword [eax + 0x10]
mov eax, dword [esp + 0x94]
sub edx, ebp
add edx, eax
push edx
mov edx, dword [esi + 0x14]
sub edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [esp + 0x3c]
test edi, edi
mov dword [esp + 0x54], eax
je 0x42bc8d
mov eax, dword [edi]
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
lea edx, [esp + 0x68]
mov dword [esp + 0x6c], ecx
push edx
mov dword [esp + 0x74], ecx
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x7c], ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x68]
push 2
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [edi + 0x14]
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x4c]
sub edx, ebx
lea eax, [esp + 0x68]
push 0x16
add edx, edi
push eax
push 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x80], edx
call fcn.00417640
jmp 0x42bc8d
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
sub ecx, edi
add ecx, eax
mov dword [esp + 0x54], ecx
test byte [esi + 4], 0x10
je 0x42bca2
mov edx, dword [esp + 0x18]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
test byte [esi + 4], 0x7f
je 0x42bcba
lea eax, [esp + 0x48]
push 0x14
push eax
push 0
lea ecx, [esp + 0x24]
call fcn.00417640
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc eax
add edx, 0x18
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jl 0x42b978
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov eax, ecx
mov edi, dword [esp + 0x10]
lea ecx, [ebx + eax - 1]
mov dword [esp + 0x14], ecx
mov ebx, ecx
jmp 0x42bd32
xor eax, eax
lea edx, [esp + 0x78]
push eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
push eax
mov eax, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x98]
push edx
push eax
push ecx
lea ecx, [edi + 0x9c]
call fcn.0042bd80
mov eax, dword [ebp + 4]
inc ebx
cmp ebx, eax
mov dword [esp + 0x14], ebx
jl 0x42b8d9
mov esi, dword [esp + 0x34]
test esi, esi
je 0x42bd5a
mov edx, dword [edi + 4]
push 0
push 1
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 4]
push 0x185
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 8