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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x64]
push edi
mov edi, dword [esp + 0x64]
test esi, esi
jne 0x1007633c
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea ecx, [ebx + edx*8 + 0x78]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x1007636a
lea edx, [esp + 0x50]
push ecx
push edx
call ebp
jmp 0x10076377
lea ecx, [esp + 0x50]
push ecx
push eax
push ebx
push edi
call fcn.10075ea0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x10076387
lea edx, [esp + 0x40]
push eax
push edx
call ebp
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push ecx
call ebp
lea edx, [esp + 0x50]
lea eax, [esp + 0x20]
push edx
push eax
call ebp
mov eax, dword [ebx + 0x5c]
mov ebp, dword [sym.imp.USER32.dll_InflateRect]
neg eax
push eax
lea ecx, [esp + 0x24]
push eax
push ecx
call ebp
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x100763be
xor edx, edx
jmp 0x100763c6
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x60]
add edx, ecx
test eax, eax
je 0x100763ce
xor ecx, ecx
jmp 0x100763d6
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x60]
add ecx, eax
mov eax, dword [ebx + 0x5c]
add edx, eax
add eax, ecx
neg edx
neg eax
push edx
push eax
lea eax, [esp + 0x38]
push eax
call ebp
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x10076408
mov eax, dword [esp + 0x74]
test eax, eax
je 0x10076408
push 1
lea ecx, [esp + 0x34]
push 1
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x70]
mov ecx, dword [ebx + 0xc]
mov eax, dword [edx + 0xc]
cmp eax, ecx
mov dword [esp + 0x6c], eax
jb 0x1007641e
mov dword [esp + 0x6c], ecx
mov eax, dword [edx + 0x10]
mov ebp, dword [ebx + 0x10]
cmp eax, ebp
jae 0x1007642a
mov ebp, eax
mov ecx, dword [edx + 0x2c]
mov edi, dword [edx + 0x30]
cmp ecx, edi
jle 0x10076448
mov eax, dword [esp + 0x6c]
imul eax, edi
cdq
idiv ecx
mov edi, eax
mov eax, dword [esp + 0x6c]
mov ecx, eax
jmp 0x10076458
mov eax, ebp
imul eax, ecx
cdq
idiv edi
mov edi, ebp
mov ecx, eax
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jbe 0x10076469
imul eax, edi
xor edx, edx
div ecx
mov ecx, dword [esp + 0x6c]
mov edi, eax
cmp edi, ebp
jbe 0x1007647a
mov eax, ebp
xor edx, edx
imul eax, ecx
div edi
mov edi, ebp
mov ecx, eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
sub edx, ecx
sub edx, eax
sub ebp, edi
shr edx, 1
add eax, edx
mov edx, dword [esp + 0x34]
sub ebp, edx
add ecx, eax
shr ebp, 1
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x2c]
add edx, ebp
mov ebp, dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0x34], edx
add edi, edx
mov edx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x50], edi
call ebp
mov edi, dword [sym.imp.GDI32.dll_GetStockObject]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x100764fe
lea edx, [esp + 0x10]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1007650f
push 1
call edi
lea edx, [esp + 0x10]
push eax
push edx
jmp 0x10076508
push 1
call edi
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x10076557
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10076568
push 1
call edi
push eax
lea eax, [esp + 0x14]
push eax
jmp 0x10076561
push 1
call edi
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x100765b0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x100765c1
push 1
call edi
lea ecx, [esp + 0x10]
push eax
push ecx
jmp 0x100765ba
push 1
call edi
lea edx, [esp + 0x10]
push eax
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call ebp
push 1
call edi
lea edx, [esp + 0x10]
push eax
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [ebx + 0x58]
sub eax, ecx
mov ecx, dword [ebx + 0x54]
push eax
sub edx, ecx
lea eax, [esp + 0x1c]
push edx
push eax
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x1007663b
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1007664c
push 1
call edi
lea ecx, [esp + 0x10]
push eax
push ecx
jmp 0x10076645
push 1
call edi
lea edx, [esp + 0x10]
push eax
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [ebx + 0x54]
lea edx, [esp + 0x1c]
sub eax, ecx
push eax
push edx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x10076695
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x100766a6
push 1
call edi
push eax
lea eax, [esp + 0x14]
push eax
jmp 0x1007669f
push 1
call edi
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [ebx + 0x40]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
neg edx
sbb edx, edx
and edx, 3
add edx, eax
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [ebx + 0x54]
push eax
sub edx, ecx
lea eax, [esp + 0x1c]
push edx
push eax
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x100766fb
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1007670c
push 1
call edi
lea ecx, [esp + 0x10]
push eax
push ecx
jmp 0x10076705
push 1
call edi
lea edx, [esp + 0x10]
push eax
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x10076ac5
mov eax, dword [esp + 0x74]
test eax, eax
je 0x100768b0
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x60]
push eax
mov eax, dword [esp + 0x24]
lea edx, [eax + ecx + 1]
mov ecx, dword [esp + 0x28]
push edx
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x1007676e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1007677f
push 2
call edi
push eax
lea eax, [esp + 0x14]
push eax
jmp 0x10076778
push 2
call edi
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebx + 0x60]
mov ecx, dword [esp + 0x24]
lea edx, [ecx + eax + 1]
push edx
mov edx, dword [esp + 0x2c]
push edx
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + eax + 1]
lea eax, [esp + 0x1c]
push edx
push eax
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x100767ce
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x100767df
push 2
call edi
lea ecx, [esp + 0x10]
push eax
push ecx
jmp 0x100767d8
push 2
call edi
lea edx, [esp + 0x10]
push eax
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x60]
mov edx, dword [esp + 0x28]
push eax
sub eax, ecx
push edx
inc eax
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + ecx + 1]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x1007682d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1007683e
push 1
call edi
push eax
lea eax, [esp + 0x14]
push eax
jmp 0x10076837
push 1
call edi
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x60]
push edx
mov edx, dword [esp + 0x28]
push eax
sub eax, ecx
lea edx, [edx + ecx + 1]
inc eax
push edx
push eax
lea eax, [esp + 0x20]
push eax
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x1007689a
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10076ac5
push 1
call edi
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x10076ac5
push 1
call edi
lea edx, [esp + 0x10]
push eax
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x10076ac5
push 6
call edi
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x60]
test eax, eax
jbe 0x10076934
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
add eax, edi
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [eax + 1]
push edx
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x10076908
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1007692c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebx + 0x60]
inc edi
cmp edi, eax
jb 0x100768c9
mov ecx, dword [ebx + 0x60]
xor edi, edi
test ecx, ecx
jbe 0x100769ab
mov edx, dword [esp + 0x24]
lea eax, [edx + edi]
lea edx, [eax + 1]
push edx
mov edx, dword [esp + 0x2c]
sub edx, edi
push edx
push eax
mov eax, dword [esp + 0x2c]
add eax, ecx
lea ecx, [esp + 0x1c]
push eax
push ecx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x1007697f
lea edx, [esp + 0x10]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x100769a3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebx + 0x60]
inc edi
cmp edi, ecx
jb 0x1007693d
push 0x808080
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
mov dword [esp + 0x74], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x60]
xor edi, edi
test ecx, ecx
jbe 0x10076a3c
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
sub eax, edi
sub edx, ecx
push eax
dec eax
push edx
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
lea ecx, [eax + edi + 1]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x10076a10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10076a34
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebx + 0x60]
inc edi
cmp edi, ecx
jb 0x100769cf
mov eax, dword [ebx + 0x60]
xor edi, edi
test eax, eax
jbe 0x10076aae
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub eax, edi
push ecx
push eax
add edx, edi
dec eax
push edx
push eax
lea eax, [esp + 0x20]
push eax
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x10076a82
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10076aa6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebx + 0x60]
inc edi
cmp edi, eax
jb 0x10076a45
mov edx, dword [esp + 0x74]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x10076b92
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10076c7c
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 0x38]
mov ebp, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push ecx
push esi
mov edi, eax
call ebp
push esi
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov edx, dword [ebx + 0x38]
push 0
push edx
push edi
call ebp
push edi
mov dword [esp + 0x78], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 4]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x7c], eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
ja 0x10076c23
mov ecx, edx
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebx + 0x10]
cmp edx, ecx
ja 0x10076c23
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
mov ecx, eax
push 0xcc0020
sub ecx, ebx
mov ebx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x48]
mov edx, ecx
sub edx, ebx
push edx
mov edx, dword [esp + 0x58]
push edi
push edx
mov edx, dword [esp + 0x5c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x10076c55
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [sym.imp.GDI32.dll_SelectPalette]
mov edi, eax
mov eax, dword [ebx + 0x38]
push 0
push eax
push esi
call ebp
push esi
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [ebx + 0x38]
push 0
push ecx
push edi
call ebp
push edi
mov dword [esp + 0x78], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 4]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
ja 0x10076c23
mov edx, dword [esp + 0x70]
mov ecx, dword [edx + 0x10]
mov edx, dword [ebx + 0x10]
cmp ecx, edx
ja 0x10076c23
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 0xcc0020
push 0
push 0
sub edx, eax
push edi
push edx
mov edx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x10076c55
mov ecx, dword [esp + 0x70]
push 0xcc0020
mov edx, dword [ecx + 0x10]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push 0
push 0
sub ecx, eax
push edi
push ecx
mov ecx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x7c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
mov ecx, dword [esp + 0x78]
push ecx
push edi
call ebp
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
mov edx, dword [esp + 0x70]
push edx
push esi
call ebp
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x10076c90
mov eax, dword [esp + 0x64]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x1c