Function at 0x100186f0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x40]
push esi
push edi
push ebx
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov eax, dword [esi + 0x104]
test eax, eax
mov dword [esp + 0x28], edi
je 0x10018a06
test edi, edi
je 0x10018a06
lea eax, [esp + 0x34]
push ebp
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
sub ebp, ecx
sub ebx, edx
push ebp
push ebx
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x28]
mov edi, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0xa4]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebp
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esi + 0xd0]
test eax, eax
jne 0x1001879e
mov eax, dword [esi + 0x124]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x100187b2
mov dword [esp + 0x14], eax
jmp 0x100187bc
mov ecx, dword [esi + 0x120]
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 0x144]
mov eax, dword [esi + 0x140]
mov ecx, dword [esi + 0x104]
push 0xcc0020
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push 0
push 0
push edi
call ebx
mov ecx, dword [esi + 0x124]
mov edx, dword [esi + 0xdc]
sub ecx, dword [esi + 0xd8]
mov eax, dword [esi + 0x120]
sub eax, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
sub ebp, eax
cmp dword [esi + 0xd4], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ecx
je 0x10018900
mov ecx, dword [esi + 0x104]
push 0xcc0020
push edx
mov edx, dword [esp + 0x20]
push 0
push ecx
push eax
push edx
push ebp
push 0
push edi
call ebx
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0x104]
push 0xcc0020
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push ebp
push edx
push edi
call ebx
mov ecx, dword [esi + 0xd4]
mov eax, dword [esi + 0xdc]
sub eax, ecx
cmp ecx, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jge 0x100188fc
jmp 0x10018896
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xd4]
push 0xcc0020
push edx
mov edx, dword [esi + 0x104]
push 0
push edx
push eax
mov eax, dword [esi + 0xd0]
push eax
push ecx
push 0
push edi
call ebx
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xd8]
mov eax, dword [esi + 0x104]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push edi
call ebx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add eax, edx
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x1001888e
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x100189bb
mov edx, dword [esi + 0x104]
push 0xcc0020
push 0
push eax
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
push eax
push edx
push 0
push ecx
push edi
call ebx
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xd8]
sub eax, ecx
mov dword [esp + 0x20], eax
je 0x100189bb
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
cmp ecx, edx
jge 0x100189bb
jmp 0x10018957
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0xd0]
push 0xcc0020
push 0
push edx
mov edx, dword [esi + 0x104]
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
push 0
push ecx
push edi
call ebx
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xd0]
mov edx, dword [esi + 0x104]
push 0xcc0020
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push ebp
push edx
push edi
call ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x1001894f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
push edi
push eax
push ecx
push 0
push 0
push edx
call ebx
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x4c]
pop ebp
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4
mov ecx, dword [esi + 0x114]
push ecx
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_DrawIcon]
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4