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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x49f014]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push edi
mov edi, ecx
movlpd qword [esp + 0x3c], xmm0
lea eax, [esp + 0x3c]
movlpd qword [esp + 0x44], xmm0
push eax
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
mov dword [esp + 0x34], vtable.KPaintDC.0
mov dword [esp + 0x3c], edi
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_BeginPaint]
cmp dword [edi + 0x60], 0
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esp + 0x34], eax
je 0x40984f
push dword [esp + 0x34]
xorps xmm0, xmm0
xor esi, esi
movlpd qword [esp + 0x1c], xmm0
xor ebx, ebx
mov dword [esp + 0x1c], vtable.KDC.0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [edi + 0x48]
test eax, eax
push dword [edi + 0x44]
cmovne esi, eax
push dword [esp + 0x3c]
mov dword [esp + 0x28], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
cmovne ebx, eax
push ebx
push esi
mov dword [esp + 0x14], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [edi + 0x40]
mov dword [esp + 0x18], eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xac]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0x60]
xor esi, esi
cmp dword [ecx + 0xc], esi
jbe 0x40981f
xor ebx, ebx
push ecx
lea eax, [esp + 0x24]
mov ecx, edi
push eax
push esi
call fcn.00408cb0
lea eax, [esp + 0x80]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0x50]
neg eax
push eax
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x90]
mov dword [esp + 0x90], 0x1c
push eax
push 1
push dword [edi + 0x38]
mov dword [esp + 0xa0], 4
call dword [sym.imp.USER32.dll_GetScrollInfo]
push dword [edi + 0x48]
lea eax, [esp + 0x24]
push dword [edi + 0x44]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor eax, eax
cmp esi, dword [edi + 0x8c]
jne 0x4097a4
cmp dword [edi + 0x90], 0
mov eax, 1
mov ecx, 3
cmovne eax, ecx
xor ecx, ecx
cmp esi, 0x24
jae 0x4097b2
mov ecx, dword [esi*4 + 0x482508]
push ecx
push eax
lea eax, [esp + 0x28]
mov ecx, edi
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [edi + 0x60]
mov eax, dword [eax + 8]
add eax, ebx
push eax
call fcn.004091d0
push ecx
lea eax, [esp + 0x24]
mov ecx, edi
push eax
push esi
call fcn.00408cb0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub eax, edx
mov ecx, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
sub eax, ecx
push eax
push edx
push ecx
push dword [esp + 0x54]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [edi + 0x60]
inc esi
add ebx, 0x18
cmp esi, dword [eax + 0xc]
jb 0x409714
mov ebx, dword [esp + 0xc]
push dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
call edi
push dword [esp + 0x14]
push esi
call edi
test ebx, ebx
je 0x409842
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
test esi, esi
je 0x40984f
push esi
call ebx
lea eax, [esp + 0x3c]
mov dword [esp + 0x30], vtable.KPaintDC.0
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], vtable.KDC.0
test eax, eax
je 0x409884
push eax
mov dword [esp + 0x38], 0
call ebx
mov ecx, dword [esp + 0xbc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret