Function at 0x1039426
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
push esi
xor esi, esi
push edi
xor eax, eax
lea edi, [ebp - 0x48]
mov dword [ebp - 0x4c], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
stosd dword es:[edi], eax
mov ebx, ecx
lea edi, [ebp - 0x30]
mov dword [ebp - 0x34], esi
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x103949c
test byte [eax + 0x1c], 2
je 0x103949c
push dword [ebp - 4]
push dword [ebp - 0x14]
push edi
push 0x100a1b4
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01038c5f
mov eax, dword [ebx + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x400000
je 0x10394db
mov eax, dword [section..data]
cmp eax, section..data
je 0x10394d3
test byte [eax + 0x1c], 2
je 0x10394d3
push 0x100a1b4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01017c98
mov eax, edi
mov edi, dword [ebp - 4]
mov dword [ebp - 4], eax
cmp edi, esi
je 0x1039541
push 0x2000
push esi
push esi
movzx eax, di
push esi
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1039541
push 0x50
lea eax, [ebp - 0xb0]
push esi
push eax
mov dword [ebp - 0xb4], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb4]
push eax
push 0x54
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x1039541
mov eax, dword [ebp - 0xac]
cmp eax, esi
jge 0x1039535
neg eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x14], esi
je 0x10395ab
movzx eax, word [ebp - 0x14]
push 0x2000
push esi
push esi
push esi
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x10395ab
push 0x50
lea eax, [ebp - 0xb0]
push esi
push eax
mov dword [ebp - 0xb4], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb4]
push eax
push 0x54
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x10395ab
mov edi, dword [ebp - 0xac]
cmp edi, esi
jge 0x103959d
neg edi
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
jmp 0x10395ae
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 4], esi
je 0x1039615
movzx eax, word [ebp - 4]
push 0x2000
push esi
push esi
push esi
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x1039615
push 0x50
lea eax, [ebp - 0xb0]
push esi
push eax
mov dword [ebp - 0xb4], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb4]
push eax
push 0x54
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x1039615
mov eax, dword [ebp - 0xac]
cmp eax, esi
jge 0x103960a
neg eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x4c], ecx
jmp 0x1039618
mov eax, dword [ebp - 0x48]
cmp edi, eax
mov ecx, edi
jg 0x1039620
mov ecx, eax
mov edx, dword [ebp - 0x28]
cmp edx, ecx
jle 0x103962c
mov dword [ebp - 0x10], edx
jmp 0x1039636
cmp edi, eax
mov dword [ebp - 0x10], edi
jg 0x1039636
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
add ecx, eax
mov eax, dword [ebp - 0x4c]
add ecx, eax
mov dword [ebx + 0x2c], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x103966b
test byte [eax + 0x1c], 2
je 0x103966b
push ecx
push 0x100a1b4
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b900
lea eax, [ebp - 0x60]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0x58]
sub esi, dword [ebp - 0x60]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
inc esi
mov dword [ebp - 0x14], esi
jne 0x10396b0
mov eax, dword [section..data]
cmp eax, section..data
je 0x10399a6
test byte [eax + 0x1c], 4
je 0x10399a6
push 0x100a1b4
push 0xd
jmp 0x103999b
cmp dword [ebp - 0x10], 0
je 0x1039982
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10398be
push dword [ebp - 0x10]
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x44], eax
call edi
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
call edi
cmp dword [ebp - 8], 0
mov dword [ebp - 4], eax
je 0x10398aa
xor edi, edi
cmp eax, edi
je 0x10398aa
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], edi
cmp eax, edi
jne 0x1039716
mov eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.0104d16c
mov esi, dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebx + 0xc], eax
cmp eax, edi
je 0x103974b
push edi
push eax
push dword [ebp - 0x18]
call esi
push edi
push dword [ebx + 0xc]
mov dword [ebp - 0x40], eax
push dword [ebp - 4]
call esi
push dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push dword [ebp - 0x44]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x50], eax
mov edi, 0xcc0020
je 0x1039799
push dword [ebp - 0x20]
push dword [ebp - 8]
call esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp - 0xc], 0
je 0x1039799
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x24], 0
je 0x10397e0
push dword [ebp - 0x24]
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x2c]
push edi
push dword [ebp - 0x30]
sub ecx, dword [ebp - 0x4c]
push dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push dword [ebp - 8]
push dword [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x2c]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [ebp - 0xc], 0
je 0x10397e0
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x1c], 0
je 0x103981d
push dword [ebp - 0x1c]
push dword [ebp - 8]
call esi
push edi
xor edi, edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x14]
sub eax, dword [ebp - 0x4c]
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp - 0xc], edi
je 0x103981d
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
cmp dword [ebx + 0x30], 0
je 0x1039861
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xc
call edi
cdq
sub eax, edx
sar eax, 1
push 0xc
mov dword [ebp - 0xc], eax
call edi
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
jns 0x1039849
xor eax, eax
push 0xb
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebx + 0x30]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawIconEx]
cmp dword [ebp - 0x50], 0
je 0x103986f
push dword [ebp - 0x50]
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x40], 0
je 0x1039883
push 1
push dword [ebp - 0x40]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectPalette]
cmp dword [ebp - 0x38], 0
je 0x1039897
push 1
push dword [ebp - 0x38]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x10398f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10398f0
test byte [ecx + 0x1c], 4
je 0x10398f0
push eax
push 0x100a1d8
push 0x100a1b4
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104e22f
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039926
test byte [eax + 0x1c], 2
je 0x1039926
push dword [ebp - 0x10]
push esi
push 0x100a1b4
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101d5f9
mov eax, dword [section..data]
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x1039987
mov eax, dword [ebp + 8]
test eax, eax
je 0x1039946
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x103993d
mov dword [eax], ecx
push eax
push esi
mov ecx, ebx
call fcn.0103904e
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x1039954
push eax
call edi
and dword [ebx + 0x28], 0
mov dword [ebx + 0x28], esi
cmp dword [ebp - 0x20], 0
je 0x1039962
push dword [ebp - 0x20]
call edi
cmp dword [ebp - 0x24], 0
je 0x103996d
push dword [ebp - 0x24]
call edi
cmp dword [ebp - 0x1c], 0
je 0x1039978
push dword [ebp - 0x1c]
call edi
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [section..data]
cmp eax, section..data
je 0x10399a6
test byte [eax + 0x1c], 4
je 0x10399a6
push 0x100a1b4
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01017c98
and dword [ebp - 0x3c], 0
jmp 0x1039957