Function at 0x4023a0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45c500
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x46e320]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
push 0xe4b795
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov ebx, dword [ebp + 8]
push edi
push ebx
mov dword [esp + 0xa0], 0
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
mov byte [esp + 0x98], 1
xor eax, eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push ecx
push ebx
mov ecx, esi
call edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x124]
sub eax, dword [esi + 0x120]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
test eax, 0xfffffffc
je 0x402984
mov ecx, dword [esi + 0x13c]
sub ecx, dword [esi + 0x138]
test ecx, 0xfffffffc
je 0x402984
lea edx, [esp + 0x5c]
push edx
call fcn.00407490
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x9c], 2
call fcn.00407490
mov byte [esp + 0x98], 3
mov eax, dword [esi + 0x124]
sub eax, dword [esi + 0x120]
push 0
sar eax, 2
lea ecx, [esp + 0x60]
call fcn.00407170
mov eax, dword [esi + 0x13c]
sub eax, dword [esi + 0x138]
push 0
sar eax, 2
lea ecx, [esp + 0x78]
call fcn.00407170
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x68]
sar ecx, 2
test ecx, ecx
ja 0x4024db
call fcn.0044205d
mov edx, dword [esp + 0x68]
mov dword [edx], 0
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x80]
sar eax, 2
test eax, eax
ja 0x4024ff
call fcn.0044205d
mov ecx, dword [esp + 0x80]
mov dword [ecx], 0
mov edx, dword [esi + 0x124]
sub edx, dword [esi + 0x120]
mov ebx, 1
sar edx, 2
cmp edx, ebx
jbe 0x4025c4
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x6c]
mov ecx, eax
sub ecx, dword [esp + 0x68]
lea edi, [ebx - 1]
sar ecx, 2
cmp edi, ecx
jb 0x40254d
call fcn.0044205d
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
add edx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x124]
sub edx, dword [esi + 0x120]
sar edx, 2
cmp edi, edx
jb 0x402577
call fcn.0044205d
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
mov edi, dword [esi + 0x120]
add edi, dword [esp + 0x14]
sar eax, 2
cmp ebx, eax
jb 0x402591
call fcn.0044205d
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
add ecx, dword [edx]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x68]
mov dword [eax + edx + 4], ecx
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x124]
sub eax, dword [esi + 0x120]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x402530
mov ecx, dword [esi + 0x13c]
sub ecx, dword [esi + 0x138]
mov ebx, 1
sar ecx, 2
cmp ecx, ebx
jbe 0x40268e
xor edi, edi
jmp 0x4025f0
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, eax
sub edx, ecx
sar edx, 2
cmp ebx, edx
jb 0x40261c
call fcn.0044205d
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
lea edx, [edi + ecx + 4]
sub eax, ecx
mov dword [esp + 0x14], edx
lea edx, [ebx - 1]
sar eax, 2
cmp edx, eax
jb 0x40263c
call fcn.0044205d
mov ecx, dword [esp + 0x80]
lea eax, [edi + ecx]
mov ecx, dword [esi + 0x13c]
sub ecx, dword [esi + 0x138]
mov dword [esp + 0x1c], eax
sar ecx, 2
lea eax, [ebx - 1]
cmp eax, ecx
jb 0x40265e
call fcn.0044205d
mov edx, dword [esi + 0x138]
mov ecx, dword [edi + edx]
mov edx, dword [esp + 0x1c]
add ecx, dword [edx]
mov eax, dword [esp + 0x14]
add dword [eax], ecx
mov eax, dword [esi + 0x13c]
sub eax, dword [esi + 0x138]
inc ebx
sar eax, 2
add edi, 4
cmp ebx, eax
jb 0x4025f0
mov ecx, dword [esi + 0x104]
mov edx, dword [ecx]
mov ebx, dword [esi + 0xec]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
jmp 0x4026b0
mov edi, dword [esi + 0x104]
mov eax, dword [esi + 0xec]
test ebx, ebx
je 0x4026c4
cmp ebx, eax
je 0x4026c9
call fcn.0044205d
cmp dword [esp + 0x18], edi
je 0x402919
test ebx, ebx
jne 0x4028b1
call fcn.0044205d
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x4026f0
call fcn.0044205d
mov edx, dword [esp + 0x84]
sub edx, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x10]
mov ebx, dword [eax + 0xc]
sar edx, 2
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
cmp edi, edx
jb 0x40271c
call fcn.0044205d
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x68]
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + edi*4]
sar edx, 2
mov dword [esp + 0x4c], ecx
cmp ebx, edx
jb 0x40273e
call fcn.0044205d
mov edx, dword [esp + 0x84]
sub edx, dword [esp + 0x80]
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + ebx*4]
sar edx, 2
mov dword [esp + 0x50], ecx
cmp edi, edx
jb 0x402763
call fcn.0044205d
mov edx, dword [esi + 0x13c]
sub edx, dword [esi + 0x138]
mov eax, dword [esp + 0x80]
sar edx, 2
lea ecx, [eax + edi*4]
mov dword [esp + 0x1c], ecx
cmp edi, edx
jb 0x402789
call fcn.0044205d
mov edx, dword [esp + 0x6c]
mov eax, dword [esi + 0x138]
sub edx, dword [esp + 0x68]
mov edi, dword [eax + edi*4]
mov ecx, dword [esp + 0x1c]
add edi, dword [ecx]
sar edx, 2
mov dword [esp + 0x54], edi
cmp ebx, edx
jb 0x4027b4
call fcn.0044205d
mov edi, dword [esp + 0x54]
mov edx, dword [esi + 0x124]
sub edx, dword [esi + 0x120]
mov eax, dword [esp + 0x68]
sar edx, 2
lea ecx, [eax + ebx*4]
mov dword [esp + 0x1c], ecx
cmp ebx, edx
jb 0x4027db
call fcn.0044205d
mov edi, dword [esp + 0x54]
mov eax, dword [esi + 0x120]
mov eax, dword [eax + ebx*4]
mov ecx, dword [esp + 0x1c]
add eax, dword [ecx]
cmp edi, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
jle 0x40288c
cmp eax, dword [esp + 0x50]
jle 0x40288c
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x4028b8
call fcn.0044205d
xor eax, eax
mov edi, dword [esp + 0x18]
cmp edi, dword [eax + 0x18]
jne 0x402838
call fcn.0044205d
cmp dword [edi + 0x18], 0
je 0x402894
mov eax, dword [ebp + 8]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.GDI32.dll_RectVisible]
test eax, eax
je 0x402894
test ebx, ebx
jne 0x4028bf
call fcn.0044205d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x402866
call fcn.0044205d
mov ebx, dword [edi + 0x18]
mov edi, dword [ebx]
push esi
lea edx, [esp + 0x3c]
lea eax, [esp + 0x38]
add edi, 0x10
call fcn.00403170
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
push edx
mov ecx, ebx
call eax
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test ebx, ebx
jne 0x40289d
call fcn.0044205d
cmp byte [edi + 0x1d], 0
je 0x4028c3
call fcn.0044205d
mov ebx, dword [esp + 0x14]
jmp 0x4026b0
mov eax, dword [ebx]
jmp 0x4026e2
mov eax, dword [ebx]
jmp 0x40282a
mov eax, dword [ebx]
jmp 0x40285c
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x1d], 0
jne 0x4028eb
mov eax, dword [ecx]
cmp byte [eax + 0x1d], 0
jne 0x4028de
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x1d], 0
je 0x4028d4
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
jmp 0x4026b0
mov eax, dword [edi + 4]
cmp byte [eax + 0x1d], 0
jne 0x40290c
jmp 0x4028fa
mov edi, dword [esp + 0x18]
cmp edi, dword [eax + 8]
jne 0x40290c
mov dword [esp + 0x18], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x4028f6
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x4026b0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x40292d
push eax
call fcn.00441afa
add esp, 4
mov ecx, dword [esp + 0x74]
xor eax, eax
push ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
call fcn.00441afa
mov eax, dword [esp + 0x6c]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x402964
push eax
call fcn.00441afa
add esp, 4
mov edx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
call fcn.00441afa
mov edi, dword [esp + 0x24]
mov ebx, dword [ebp + 8]
add esp, 4
mov eax, dword [esp + 0x24]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc