Function at 0x10171fa0
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x101f2c59
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov ebx, dword [ebp + 4]
test ebx, ebx
je 0x101721a5
mov eax, dword [ebp + 8]
sub eax, ebx
sar eax, 2
je 0x101721a5
mov eax, ebp
xor edi, edi
call fcn.10029230
test eax, eax
jbe 0x1017203f
test ebx, ebx
je 0x10172000
mov eax, dword [ebp + 8]
sub eax, ebx
sar eax, 2
cmp edi, eax
jb 0x10172006
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x68]
test eax, eax
je 0x10172025
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, dword [ebp + 4]
cmp dword [ebx + edi*4], eax
jae 0x101721a5
mov eax, ebp
add edi, 1
call fcn.10029230
cmp edi, eax
jb 0x10171ff0
mov ecx, dword [esi + 0x1a0]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x101721a5
mov eax, dword [esi + 0x1a0]
lea edx, [esp + 0x28]
xor edi, edi
push edx
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x5c]
push edx
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, ebp
xor ebx, ebx
call fcn.10029230
test eax, eax
jbe 0x10172168
mov ecx, dword [ebp + 4]
cmp ecx, edi
je 0x101720c9
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x101720cf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x68]
test eax, eax
mov edx, dword [ebp + 4]
mov edi, dword [edx + ebx*4]
je 0x10172154
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x10172154
mov eax, dword [esi + 0x68]
test eax, eax
je 0x1017211b
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10172121
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x68]
imul edi, edi, 0xcc
mov ecx, dword [edi + eax + 0x3c]
cmp ecx, dword [esp + 0x38]
mov edx, dword [edi + eax + 0x44]
lea eax, [edi + eax + 0x3c]
mov edi, dword [eax + 4]
mov eax, dword [eax + 0xc]
jl 0x101721a5
cmp edx, dword [esp + 0x40]
jg 0x101721a5
cmp edi, dword [esp + 0x3c]
jl 0x101721a5
cmp eax, dword [esp + 0x44]
jg 0x101721a5
mov eax, ebp
add ebx, 1
call fcn.10029230
xor edi, edi
cmp ebx, eax
jb 0x101720b6
mov eax, dword [esi + 0x1a0]
mov dword [esp + 0x20], edi
mov dword [esp + 0x64], edi
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], 1
cmp dword [esp + 0x20], edi
jne 0x101721bc
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x20]
push ecx
call fcn.10013210
xor al, al
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x58
ret 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x64], 2
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
push eax
mov eax, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push edi
neg ecx
push ecx
neg edx
push edx
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov ecx, dword [esi + 0x100]
sub edi, dword [esp + 0x2c]
test ecx, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x6c], 0
je 0x1017225b
mov eax, dword [ecx]
mov eax, dword [eax + 0xec]
lea edx, [esp + 0x6c]
push edx
push ecx
call eax
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0xfc]
test ecx, ecx
je 0x101722b7
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
sub edi, dword [esp + 0x6c]
xor edx, edx
lea eax, [esp + 0x6c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x68], edi
mov dword [esp + 0x5c], edx
mov edi, dword [esp + 0x5c]
mov dword [eax], edi
mov dword [esp + 0x60], edx
mov edi, dword [esp + 0x60]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x80], edx
mov edx, dword [ecx]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x68]
push ebx
push ecx
mov ecx, dword [edx + 0xe0]
mov dword [eax + 0xc], edi
call ecx
xor edi, edi
mov eax, ebp
mov dword [esp + 0x6c], edi
call fcn.10029230
test eax, eax
jbe 0x1017255a
jmp 0x101722d4
mov edi, dword [esp + 0x6c]
cmp byte [esi + 0x19c], 0
jne 0x10172432
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x101722f4
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x101722fa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 4]
mov eax, dword [esi + 0x17c]
add edi, edi
add edi, edi
cmp dword [edi + ecx], eax
jne 0x10172384
mov eax, dword [esi + 0x68]
test eax, eax
je 0x1017232b
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esi + 0x17c], eax
jae 0x101724b1
push 1
push 2
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], ebx
mov byte [esp + 0x70], 5
mov eax, dword [esi + 0x68]
test eax, eax
mov edi, dword [esi + 0x17c]
je 0x10172372
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10172378
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0x1a4]
push edx
jmp 0x1017249c
cmp byte [esi + 0x19c], 0
jne 0x1017242e
test ecx, ecx
je 0x101723a3
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x6c], eax
jb 0x101723a9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 4]
mov ecx, dword [edi + eax]
cmp ecx, dword [esi + 0x188]
jne 0x1017242e
push 1
push 1
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], ebx
mov byte [esp + 0x70], 3
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x101723de
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x78], eax
jb 0x101723e4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 4]
mov ebx, dword [eax + edi]
add eax, edi
mov eax, dword [esi + 0x68]
test eax, eax
je 0x1017240f
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10172415
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0x1a4]
imul ebx, ebx, 0xcc
add ebx, dword [esi + 0x68]
push edx
mov byte [esp + 0x74], 2
mov ecx, ebx
jmp 0x101724ac
mov edi, dword [esp + 0x6c]
push 1
push 0
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], ebx
mov byte [esp + 0x70], 4
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x10172457
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x1017245d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 4]
lea ecx, [edi*4]
mov edi, dword [eax + ecx]
add eax, ecx
mov eax, dword [esi + 0x68]
test eax, eax
je 0x1017248f
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10172495
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x1a4]
push eax
imul edi, edi, 0xcc
add edi, dword [esi + 0x68]
mov byte [esp + 0x74], 2
mov ecx, edi
call fcn.10174f30
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x101724c6
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x6c], eax
jb 0x101724cc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x6c]
mov eax, dword [ebp + 4]
add ecx, ecx
add ecx, ecx
mov edi, dword [eax + ecx]
add eax, ecx
mov eax, dword [esi + 0x68]
test eax, eax
je 0x101724ff
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10172505
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x68]
imul edi, edi, 0xcc
mov edx, dword [edi + ecx + 0x40]
lea eax, [edi + ecx + 0x3c]
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
push 0xcc0020
push edx
push ecx
push dword [esp + 0x1c]
sub eax, edx
push eax
sub edi, ecx
push edi
push edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [esp + 0x6c]
add edi, 1
mov eax, ebp
mov dword [esp + 0x6c], edi
call fcn.10029230
cmp edi, eax
mov ebx, dword [esp + 0x10]
jb 0x101722d0
mov eax, dword [esp + 0x18]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1017258d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x1017258d
mov dword [esp + 0x14], 0
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x20]
push ecx
call fcn.10013210
mov al, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x58
ret 4