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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
cmp dword [edi + 0x28], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
push esi
mov dword [esp + 8], 0
jle 0x4074cd
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 8]
mov esi, dword [eax + ecx*4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [esi + 4]
je 0x407466
call fcn.00484d60
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call ebx
mov eax, dword [esi + 0x38]
lea edx, [esp + 0x3c]
push edx
push eax
call ebx
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x4c]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x58]
push 0x12
lea edx, [ecx + eax + 0x23]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov ecx, dword [esi + 4]
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [edi + 0x24]
mov eax, dword [esp + 8]
mov eax, dword [edx + eax*4]
and dword [eax + 0x34], 0xfffffffe
jmp 0x4074bb
call fcn.00484d60
mov edx, dword [esi + 4]
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebx
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x5c]
push eax
push ecx
call ebx
mov eax, dword [esi + 0x40]
lea edx, [esp + 0x6c]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x78]
push 0x12
lea eax, [edx + ecx + 0x23]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov edx, dword [esi + 4]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 8]
mov dword [edi + 0x44], eax
mov eax, dword [esp + 8]
inc eax
cmp eax, dword [edi + 0x28]
mov dword [esp + 8], eax
jl 0x4073f6
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 4]
lea edx, [esp + 0xc]
push edx
push eax
call ebx
mov eax, dword [esp + 0x10]
xor esi, esi
cmp dword [edi + 0x28], esi
jle 0x4075c0
sub eax, dword [edi + 0x40]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi + 0x24]
push 0x11
push 0
push 0
add eax, 4
push eax
mov eax, dword [edx + esi*4]
push ecx
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [edi + 0x24]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax + 4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [edi + 0x24]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [edi + 0x24]
mov eax, dword [edx + esi*4]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp edx, dword [eax + 4]
mov dword [esp + 8], eax
setne cl
add ecx, 8
je 0x407586
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x6c]
push ecx
push edx
call ebx
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 0x40]
lea eax, [esp + 0x5c]
push eax
push edx
call ebx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x68]
lea ecx, [ecx + eax + 0x23]
jmp 0x4075ac
mov eax, dword [eax + 0x38]
lea edx, [esp + 0x4c]
push edx
push eax
call ebx
mov edx, dword [esp + 8]
mov eax, dword [edx + 0x40]
lea ecx, [esp + 0x3c]
push ecx
push eax
call ebx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
lea ecx, [edx + ecx + 0x23]
mov eax, dword [esp + 0x10]
add eax, ecx
inc esi
cmp esi, dword [edi + 0x28]
mov dword [esp + 0x10], eax
jl 0x4074fc
mov ecx, dword [esp + 0x18]
inc ecx
cmp eax, ecx
jle 0x40762f
mov edx, dword [edi + 4]
push 1
push edx
call dword [sym.imp.USER32.dll_GetScrollPos]
mov edx, dword [esp + 0x10]
push 1
xor ecx, ecx
mov dword [esp + 0x84], eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x8c], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x20]
push 1
push ecx
mov dword [esp + 0x7c], 0x1c
mov dword [esp + 0x80], 0x17
mov dword [esp + 0x8c], edx
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov edx, dword [edi + 4]
push 1
push 1
push edx
jmp 0x407637
mov eax, dword [edi + 4]
push 0
push 1
push eax
call dword [sym.imp.USER32.dll_ShowScrollBar]
cmp dword [ebp + 8], 0x509
je 0x40765d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 4]
push ecx
push edx
push 0x509
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc