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

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x18], ebx
call fcn.004405f8
mov ecx, eax
mov eax, dword [esp + 0x60]
and ecx, eax
cmp ecx, eax
je 0x4078fa
push 0
push eax
push 0
mov ecx, ebx
call fcn.0044062c
push 0xe801
mov ecx, ebx
call fcn.00440517
or edi, 0xffffffff
lea ebp, [ebx + 0x5c]
xor esi, esi
push edi
push esi
mov ecx, ebp
call fcn.00408250
mov eax, dword [ebx + 0x1c]
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x7c], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
cmp eax, esi
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x74], edx
mov dword [ebx + 0x80], esi
je 0x407a24
mov eax, dword [ebx + 0x1c]
push 0xe801
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call esi
test eax, eax
jne 0x407a24
mov edx, dword [ebx + 0x84]
push eax
push 0xe801
lea eax, [esp + 0x34]
lea ecx, [ebx + 0x84]
push ebx
push eax
push 0x5400001c
push 0x46c838
push str.SCROLLBAR
call dword [edx + 0x54]
mov ecx, dword [ebx + 0xa0]
push ecx
call esi
test eax, eax
je 0x407a24
mov dword [ebx + 0x80], 1
mov eax, dword [ebx + 0xa0]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00443ea0
mov eax, dword [esp + 0x20]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
lea eax, [esi + 1]
mov dword [esp + 0x4c], ecx
push edi
push eax
mov ecx, ebp
mov dword [esp + 0x44], 0xe801
mov dword [esp + 0x48], 0x401c
mov dword [esp + 0x58], edx
call fcn.00408250
mov edx, dword [ebp + 4]
lea ecx, [esi + esi*2]
lea esi, [esp + 0x3c]
lea edi, [edx + ecx*8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x407a55
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub edx, esi
sub eax, ecx
mov dword [ebx + 0x78], edx
mov dword [ebx + 0x7c], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xd0]
mov edi, eax
or ecx, 0xffffffff
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ecx
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x407ae1
mov edx, dword [edi + 4]
test edx, edx
je 0x407cdb
cmp eax, eax
jne 0x407ae1
mov eax, edx
cmp eax, 0x1000
je 0x407acf
cmp eax, 0x2000
jne 0x407ccb
mov edx, dword [ebx + 0x60]
lea eax, [ecx + ecx*2]
mov dword [esp + 0x60], 0xffffffff
lea esi, [edx + eax*8]
mov eax, dword [ebx + 0x64]
sub al, cl
mov ecx, dword [esi + 4]
and eax, 0xff
shl eax, 0x10
and ecx, 0xff00ffff
or ecx, eax
add edi, 8
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x5c], edi
jmp 0x407a6c
mov edx, dword [ebx + 0x64]
add edi, 8
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], edi
mov ecx, edx
jmp 0x407a6c
push eax
mov ecx, ebx
call fcn.00440517
test eax, eax
je 0x407ccb
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.00443ea0
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x407b21
cmp dword [ebx + 0x64], eax
jne 0x407b21
mov eax, 0x1000
jmp 0x407b23
xor eax, eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, dword [esp + 0x1c]
mov esi, ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
lea ebx, [esi + 1]
xor edi, edi
mov dword [esp + 0x4c], edx
cmp ebx, edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x14], esi
jne 0x407b86
mov eax, dword [ebp + 4]
cmp eax, edi
je 0x407b7b
push eax
mov dword [esp + 0x5c], ecx
call fcn.00440dd0
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x407caf
mov edx, dword [ebp + 4]
cmp edx, edi
jne 0x407bc0
lea edi, [ebx + ebx*2]
shl edi, 3
push edi
call fcn.00440da7
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x407caf
mov edi, dword [ebp + 0xc]
cmp ebx, edi
jg 0x407c03
cmp ecx, ebx
jge 0x407bf3
mov eax, ebx
sub eax, ecx
lea ecx, [ecx + ecx*2]
lea edi, [edx + ecx*8]
lea ecx, [eax + eax*2]
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 8], ebx
jmp 0x407caf
jle 0x407bfb
sub ecx, ebx
mov dword [esp + 0x58], ecx
mov dword [ebp + 8], ebx
jmp 0x407caf
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x407c2d
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x407c21
mov eax, 4
jmp 0x407c2d
cmp eax, 0x400
jle 0x407c2d
mov eax, 0x400
add eax, edi
cmp ebx, eax
jge 0x407c39
mov dword [esp + 0x58], eax
jmp 0x407c3f
mov dword [esp + 0x58], ebx
mov eax, ebx
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.00440da7
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, eax
mov dword [esp + 0x14], eax
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edx
lea edx, [edx + edx*2]
lea ecx, [ecx + ecx*2]
shl ecx, 3
lea edi, [eax + edx*8]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
push eax
call fcn.00440dd0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x1c]
add esp, 8
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 4]
lea eax, [esi + esi*2]
mov ebx, dword [esp + 0x18]
lea esi, [esp + 0x3c]
lea edi, [ecx + eax*8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add edi, 8
mov dword [esp + 0x5c], edi
jmp 0x407a6c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0xc