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

Disassembly:
push 0xffffffffffffffff
push 0x6230ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x8c]
push edi
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xe0]
xor ebx, ebx
push ebx
push eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esi]
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call dword [edx + pe_nt_image_headers32]
mov edi, dword [esp + 0x128]
push 0x26
mov dword [esp + 0x80], ebx
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x5629b1
push ebx
mov ecx, 0x6c6940
call fcn.00524d60
add eax, 0x48
mov ecx, edi
push eax
call fcn.005e09cc
mov edx, dword [edi + 4]
mov dword [esp + 0x7c], eax
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
lea ecx, [esp + 0x34]
call fcn.005e073b
lea ecx, [esp + 0x44]
call fcn.0043b3f0
mov dword [esp + 0x44], vtable.CBitmap.0
lea eax, [esp + 0x54]
mov dword [esp + 0x34], vtable.CExtMemoryDC.0
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [esp + 0x68], ebx
mov al, byte [esp + 0x12c]
mov dword [esp + 0x120], 2
test al, al
je 0x562c02
mov eax, dword [edi + 0xc]
xor ecx, ecx
cmp eax, ebx
lea edx, [esp + 0x6c]
sete cl
test edx, edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x64], ecx
jne 0x562a30
mov eax, dword [edi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call dword [eax + 0x50]
jmp 0x562a50
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
cmp dword [esp + 0x64], ebx
je 0x562bcc
cmp edi, ebx
jne 0x562a62
xor eax, eax
jmp 0x562a65
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x38]
call fcn.005e07f2
mov ecx, edi
call fcn.005e0e8c
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x562a86
xor ebp, ebp
push ebp
lea ecx, [esp + 0x38]
call fcn.005e0ec2
and ebp, 1
je 0x562aa5
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 8]
lea edx, [esp + 0x54]
push 2
push edx
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub ecx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xcc], 0x28
sub eax, edx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
imul eax, ecx
cmp edi, ebx
mov word [esp + 0xd8], 1
mov word [esp + 0xda], 0x20
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
jne 0x562b2c
xor eax, eax
jmp 0x562b2f
mov eax, dword [edi + 4]
push ebx
lea ecx, [esp + 0x6c]
push ebx
push ecx
lea edx, [esp + 0xd8]
push ebx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebx
je 0x562bfe
cmp dword [esp + 0x68], ebx
je 0x562bfe
push eax
lea ecx, [esp + 0x48]
call fcn.005e1342
lea eax, [esp + 0x44]
lea ecx, [esp + 0x34]
push eax
call fcn.005339e0
mov ecx, dword [edi + 8]
mov dword [esp + 0x4c], eax
push ecx
call dword [sym.imp.GDI32.dll_GetMapMode]
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x38]
call dword [edx + 0x34]
cmp ebp, ebx
je 0x562b9e
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 8]
lea edx, [esp + 0x54]
push 2
push edx
push eax
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
lea eax, [esp + 0xc0]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.005e0c12
jmp 0x562be5
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x562bd7
mov dword [esp + 0x40], eax
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
lea ecx, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.005ee0f0
lea edi, [esp + 0x34]
mov ebp, dword [edi]
mov ecx, 0x6c6940
call fcn.00524d60
add eax, 0xb0
mov ecx, edi
push eax
call dword [ebp + 0x28]
mov ecx, 0x6c6940
mov dword [esp + 0xc4], eax
call fcn.00524d60
mov edx, dword [eax]
push ebx
push esi
mov ecx, eax
call dword [edx + 0x3c]
push eax
lea eax, [esp + 0x70]
push eax
mov ecx, edi
call fcn.005ee0f0
mov ecx, 0x6c6940
call fcn.00524d60
mov edx, dword [eax]
push ebx
lea ecx, [esp + 0x70]
push esi
push ecx
push edi
mov ecx, eax
call dword [edx + 0xd8]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x178]
mov ebp, eax
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0xc8], ebp
call dword [eax + 0xe0]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x94]
cmp ecx, eax
jl 0x562ccd
mov edx, dword [esp + 0x90]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x18], eax
add ecx, ebp
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, edi
call fcn.005e0d52
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x9c]
cmp ecx, edx
jg 0x562d0e
mov ebx, dword [esp + 0x90]
sub ecx, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.005e0d52
xor ebx, ebx
test byte [esi + 0x370], 1
je 0x562df5
mov ebp, dword [esi + 0x39c]
mov ecx, dword [esi + 0x374]
cmp ebp, 0xfffffffc
lea ebp, [esi + 0x37c]
sete al
test al, al
sete dl
push edx
push ebx
push ebx
mov byte [esp + 0x2c], al
mov eax, dword [esp + 0x2c]
push ebx
push 5
push ebx
push ebx
push eax
push 1
push ebx
push ebx
push eax
push 1
push ebx
push ecx
push ebp
push 1
push esi
lea ecx, [esp + 0x114]
call fcn.00536a50
mov ecx, 0x6c6940
call fcn.00524d60
mov edx, dword [eax]
lea ecx, [esp + 0xcc]
push ecx
push edi
mov ecx, eax
call dword [edx + 0xa0]
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x1c], ebp
sub ebp, eax
add ebp, 3
mov dword [esp + 0x10], edx
push ebp
lea edx, [esp + 0x14]
push ebx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, 0x6c6940
call fcn.00524d60
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x14]
add eax, ecx
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x14], ecx
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, 0x6c6940
call fcn.00524d60
mov edx, dword [eax]
push ebx
push esi
push 1
lea ecx, [esp + 0x1c]
push ebx
push ecx
push edi
mov ecx, eax
call dword [edx + 0xb8]
test byte [esi + 0x370], 2
je 0x562ee4
mov ebp, dword [esi + 0x39c]
mov ecx, dword [esi + 0x378]
cmp ebp, 0xfffffffb
lea ebp, [esi + 0x38c]
sete al
test al, al
sete dl
push edx
push ebx
push ebx
mov byte [esp + 0x2c], al
mov eax, dword [esp + 0x2c]
push ebx
push 5
push ebx
push ebx
push eax
push 1
push ebx
push ebx
push eax
push 1
push ebx
push ecx
push ebp
push 1
push esi
lea ecx, [esp + 0x114]
call fcn.00536a50
mov ecx, 0x6c6940
call fcn.00524d60
mov edx, dword [eax]
lea ecx, [esp + 0xcc]
push ecx
push edi
mov ecx, eax
call dword [edx + 0xa0]
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0xc]
push 0xfffffffffffffffe
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov ecx, 0x6c6940
call fcn.00524d60
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov eax, dword [esp + 0x30]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x28], ecx
inc ecx
mov dword [esp + 0x30], ecx
mov ecx, 0x6c6940
call fcn.00524d60
mov edx, dword [eax]
push ebx
push esi
push 1
lea ecx, [esp + 0x30]
push ebx
push ecx
push edi
mov ecx, eax
call dword [edx + 0xb8]
mov ecx, 0x6c6940
call fcn.00524d60
mov edx, dword [eax]
push ebx
push esi
push 0x15
mov ecx, eax
call dword [edx + 0x38]
mov dword [esp + 0xb0], eax
mov ebp, 0x6c6af0
cmp dword [esi + 0x39c], ebx
je 0x562f1c
mov eax, dword [esi + 0x3a0]
mov byte [esp + 0x20], 0
cmp eax, ebx
jne 0x562f21
mov byte [esp + 0x20], 1
lea eax, [esp + 0x80]
push ebx
push eax
mov ecx, esi
call fcn.00562760
mov cl, byte [esp + 0x20]
mov eax, dword [esp + 0x20]
test cl, cl
sete cl
push ecx
push 0
push 0
push 0
push 5
push 0
push 0
push eax
push 1
push 0
push eax
push eax
push 1
push 0
lea edx, [esp + 0xb8]
push 0x6b3df8
push edx
push 1
push esi
lea ecx, [esp + 0x114]
call fcn.00536a50
mov ecx, 0x6c6940
call fcn.00524d60
mov edx, dword [eax]
lea ecx, [esp + 0xcc]
push ecx
push edi
mov ecx, eax
call dword [edx + 0xa0]
push 0xfffffffffffffffe
lea edx, [esp + 0x84]
push 0xfffffffffffffffe
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [ebp]
lea ecx, [esp + 0x80]
push eax
push ecx
mov ecx, edi
call fcn.005ee0f0
mov eax, dword [esp + 0xb0]
lea edx, [esp + 0x80]
push eax
push eax
push edx
mov ecx, edi
call fcn.005ee166
add ebp, 8
inc ebx
cmp ebp, 0x6c6c30
jl 0x562f05
mov ecx, dword [esi + 0x328]
xor ebx, ebx
cmp ecx, ebx
jbe 0x56304a
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0xc8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x10], eax
add ecx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x78]
push ebx
lea eax, [esp + 0x14]
push ebp
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_OffsetRect]
neg ebp
push ebp
lea ecx, [esp + 0x14]
push ebx
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
call fcn.0055c4c0
lea eax, [esp + 0xb4]
mov dword [esp + 0xb4], ebx
push eax
mov dword [esp + 0xbc], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xb4]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
push ebx
mov ecx, edi
call fcn.005e0d12
test byte [esi + 0x54], 2
je 0x5630fc
push ebx
mov ecx, edi
call fcn.005e0d12
lea ebp, [esi + 0x3c]
mov eax, ebp
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov ecx, esi
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x20], edx
call fcn.005e0f08
mov ecx, 0x6c6940
call fcn.00524d60
mov ecx, dword [esi + 0x32c]
mov edx, dword [eax]
push ebx
push esi
push ecx
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x20]
push ecx
push edi
mov ecx, eax
call dword [edx + 0xe0]
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x5630fc
mov edx, dword [esi + 0x32c]
mov ecx, dword [esi + 0x58]
push edx
push ebp
push esi
push edi
push ecx
call eax
add esp, 0x14
mov eax, dword [esp + 0xc4]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov al, byte [esp + 0x12c]
test al, al
je 0x5631b3
mov ebp, dword [esp + 0x50]
cmp ebp, ebx
je 0x5631b3
cmp dword [esp + 0x64], ebx
je 0x563190
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x58]
sub edx, eax
lea eax, [esp + 0x34]
sub ecx, edi
push 0xcc0020
neg eax
sbb eax, eax
push edi
and eax, dword [esp + 0x40]
push dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [ebp + 4]
push edi
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jne 0x563180
xor eax, eax
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.005e0933
jmp 0x563198
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.005e0933
jmp 0x563198
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x54]
mov dword [esp + 0x50], ebx
push ecx
mov dword [esp + 0x50], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd8]
test al, al
je 0x563387
test byte [esi + 0x80], 1
je 0x563387
mov ebp, dword [esp + 0xbc]
cmp ebp, ebx
jle 0x563387
mov edi, dword [esp + 0x128]
push ebx
mov ecx, edi
call fcn.005e0d12
mov al, byte [esi + 0x54]
mov dword [esp + 0xa0], ebx
test al, 2
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x56335d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd8]
test al, al
je 0x563314
test byte [esi + 0x80], 1
je 0x563314
lea eax, [esi + 0x3c]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x18], edx
mov edx, dword [eax]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0xa0], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xa4], ecx
lea ecx, [esp + 0xa0]
push ecx
mov ecx, esi
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], eax
call fcn.005e0f08
lea edx, [esp + 0x6c]
mov ecx, edi
push edx
call fcn.005e0d52
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.005e0f44
push ebx
push 1
push 1
push 0x64
push 0x4b
lea edx, [esp + 0x38]
push ebp
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0xbc]
push eax
push ecx
push edi
lea ecx, [esi + 0xe8]
call fcn.005531a0
push ebx
mov ecx, edi
call fcn.005e0d12
lea edx, [esi + 0x3c]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x80], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x84], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x88], eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x80]
mov dword [esp + 0x8c], ecx
push edx
mov ecx, esi
call fcn.005e0f08
lea eax, [esp + 0x80]
mov ecx, edi
push eax
call fcn.005e0d52
push ebx
push 1
push 1
push 0x64
push 0x4b
lea ecx, [esp + 0x24]
push ebp
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x88]
push edx
push eax
push edi
lea ecx, [esi + 0x8c]
call fcn.005531a0
jmp 0x56338e
mov edi, dword [esp + 0x128]
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x56339f
push ebx
push eax
mov ecx, edi
call fcn.005e09cc
mov dword [esp + 0x34], vtable.CExtMemoryDC.0
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x120], 4
cmp ebp, ebx
je 0x563444
cmp dword [esp + 0x64], ebx
je 0x563421
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x34]
sub ecx, esi
sub edx, edi
push 0xcc0020
neg eax
sbb eax, eax
push esi
and eax, dword [esp + 0x40]
push edi
push eax
push ecx
mov ecx, dword [ebp + 4]
push edx
push esi
push edi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jne 0x563411
mov edx, dword [esp + 0x38]
xor eax, eax
push eax
push edx
call fcn.005e0933
jmp 0x563429
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x38]
push eax
push edx
call fcn.005e0933
jmp 0x563429
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x54]
mov dword [esp + 0x50], ebx
push eax
mov dword [esp + 0x50], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], vtable.CGdiObject.0
mov dword [esp + 0xbc], ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x120], 5
call fcn.005e1399
lea ecx, [esp + 0x34]
mov dword [esp + 0x120], 0xffffffff
call fcn.005e0870
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 8