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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [esp + 0xb0]
inc dword [ebx + 0x5c]
mov esi, dword [esp + 0xb4]
test esi, esi
je 0x475627
mov edx, dword [esp + 0xb4]
cmp dword [edx], 1
je 0x4755f0
lea edx, [esp + 0x60]
mov dword [esp + 0x4c], edx
mov dword [esp + 8], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.004719f8
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x20
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.004753a0
mov ebp, eax
mov ebx, dword [eax + 0x28]
imul ebx, dword [eax + 4]
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov edx, eax
mov dword [ebp + 0x10], eax
xor eax, eax
mov edi, edx
mov ecx, ebx
rep stosb byte es:[edi], al
xor esi, esi
mov ebx, dword [esp + 0xc4]
test ebx, ebx
je 0x4755c4
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0xb8]
mov ecx, dword [esp + 0xc0]
test ecx, ecx
je 0x4755b6
mov edi, dword [esp + 0xbc]
add edi, esi
xor ebx, ebx
jmp 0x475596
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004752a4
inc ebx
cmp ebx, dword [esp + 0xc0]
je 0x4755b6
mov dword [esp + 8], edi
lea eax, [ebp + ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.GDI32.dll_GetPixel
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x475574
inc esi
cmp esi, dword [esp + 0xc4]
jne 0x47555c
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov edx, dword [esp + 0xb4]
mov dword [esp], edx
call fcn.00471a9c
mov eax, ebp
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0xcc], 2
je 0x475652
mov edx, dword [esp + 0xb4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x47564b
cmp dword [esp + 0xcc], 1
je 0x475636
mov eax, str.XGetImage:_not_implemented_for_format___XYPixmap
mov dword [esp + 4], str.XGetImage_Failure
mov dword [esp], eax
call fcn.0043e828
xor ebp, ebp
mov eax, ebp
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0xc8], 1
je 0x475aa4
mov eax, str.XGetImage:_not_implemented_for_plane_mask___1
jmp 0x475617
mov eax, str.XGetImage:_not_implemented_for_empty_bitmap_handles
jmp 0x475617
lea edx, [esp + 0x60]
mov dword [esp + 0x4c], edx
mov dword [esp + 8], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.004719f8
mov esi, eax
mov edx, dword [esp + 0xc4]
mov dword [esp + 8], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.GDI32.dll_CreateCompatibleBitmap
sub esp, 0xc
mov dword [esp + 0x40], eax
mov dword [esp], esi
call sub.GDI32.dll_CreateCompatibleDC
push edx
mov edi, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.GDI32.dll_SelectObject
sub esp, 8
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x60]
mov dword [esp + 0x54], edx
test edx, edx
je 0x475c1f
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.GDI32.dll_SelectPalette
sub esp, 0xc
mov dword [esp + 0x58], eax
mov dword [esp], edi
call sub.GDI32.dll_RealizePalette
push ebp
test eax, eax
jne 0x475a56
mov dword [esp + 8], 0
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.GDI32.dll_SelectPalette
sub esp, 0xc
mov dword [esp + 0x5c], eax
mov dword [esp], esi
call sub.GDI32.dll_RealizePalette
push edx
test eax, eax
je 0x47572b
mov dword [esp], esi
call sub.GDI32.dll_UpdateColors
push eax
mov dword [esp + 0x20], 0xcc0020
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.GDI32.dll_BitBlt
sub esp, 0x24
mov ebp, eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.GDI32.dll_SelectPalette
sub esp, 0xc
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.GDI32.dll_SelectObject
sub esp, 8
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov edx, dword [esp + 0xb4]
mov dword [esp], edx
call fcn.00471a9c
test ebp, ebp
je 0x475a64
mov edx, dword [esp + 0xb4]
cmp dword [edx], 2
je 0x475cdc
mov edx, dword [esp + 0xb4]
mov ecx, dword [edx + 0xc]
cmp ecx, 8
ja 0x475cd2
mov eax, 2
shl eax, cl
add eax, 0x2c
mov dword [esp], eax
mov eax, dword [0x68bb7c]
mov dword [esp + 0x38], ecx
call dword [eax + 0x14]
mov esi, eax
mov dword [eax], 0x28
mov edx, dword [esp + 0xc0]
mov dword [eax + 4], edx
mov eax, dword [esp + 0xc4]
neg eax
mov dword [esi + 8], eax
mov word [esi + 0xc], 1
mov ecx, dword [esp + 0x38]
mov word [esi + 0xe], cx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
cmp ecx, 1
je 0x475e08
cmp ecx, 8
je 0x475ce7
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
cmp ecx, 0x10
je 0x475f33
mov dword [esp + 0x38], ecx
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
mov ebp, dword [esp + 0xc0]
shl ebp, 2
mov eax, dword [esp + 0xc4]
imul eax, ebp
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov edx, eax
test eax, eax
je 0x475f2c
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x34], edx
call fcn.004753a0
mov ebp, eax
test eax, eax
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
je 0x475fb3
cmp ecx, 0x18
ja 0x475c81
mov edx, dword [esp + 0xc0]
lea edx, [edx + edx*2 + 3]
and edx, 0xfffffffc
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0xc4]
imul eax, edx
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov ebx, eax
test eax, eax
je 0x475ffe
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
test eax, eax
je 0x475fc3
mov ecx, dword [esp + 0xc4]
test ecx, ecx
je 0x475fee
mov eax, dword [ebp + 0x28]
mov ecx, ebx
mov edx, dword [esp + 0xc0]
lea edx, [edx + edx*2]
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], 0
imul eax, dword [esp + 0x48]
add eax, dword [ebp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x50]
add edx, ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xc0]
test edx, edx
je 0x475a38
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x3c]
mov cl, byte [edx]
mov byte [eax], cl
mov cl, byte [edx + 1]
mov byte [eax + 1], cl
mov cl, byte [edx + 2]
mov byte [eax + 2], cl
add edx, 3
mov byte [eax + 3], 0
add eax, 4
cmp edx, dword [esp + 0x4c]
jne 0x475a14
mov ecx, dword [esp + 0x5c]
inc dword [esp + 0x48]
add ecx, dword [esp + 0x44]
mov edx, dword [esp + 0xc4]
cmp dword [esp + 0x48], edx
je 0x475fee
mov eax, dword [ebp + 0x28]
jmp 0x4759eb
mov dword [esp], edi
call sub.GDI32.dll_UpdateColors
push ecx
jmp 0x4756f6
xor ebp, ebp
mov eax, dword [esp + 0x54]
test eax, eax
je 0x475a89
mov dword [esp + 8], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.GDI32.dll_SelectPalette
sub esp, 0xc
mov dword [esp], edi
call sub.GDI32.dll_DeleteDC
push ebx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.GDI32.dll_DeleteObject
push esi
jmp 0x4755e3
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x20
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.004753a0
mov ebp, eax
mov eax, dword [eax + 4]
imul eax, dword [ebp + 0x28]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov dword [ebp + 0x10], eax
mov dword [esp], 0
call sub.USER32.dll_GetDC
push edx
mov ebx, eax
mov dword [esp + 0x18], 0
lea esi, [esp + 0x60]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov edx, dword [esp + 0xb4]
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
mov dword [esp + 0x60], 0x28
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0xc4]
neg eax
mov dword [esp + 0x68], eax
mov word [esp + 0x6c], 1
mov word [esp + 0x6e], 1
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov edx, dword [esp + 0xb4]
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.USER32.dll_ReleaseDC
sub esp, 8
jmp 0x4755e3
mov dword [esp + 0x20], 0xcc0020
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.GDI32.dll_BitBlt
sub esp, 0x24
mov ebp, eax
mov dword [esp + 0x58], 0
jmp 0x47579b
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
test eax, eax
je 0x475ffe
mov dword [esp], esi
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
jmp 0x475a66
mov eax, 0x2c
jmp 0x4757fe
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x10]
jmp 0x4757eb
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
mov eax, dword [esi + 0x14]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov edx, eax
test eax, eax
je 0x475f2c
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 8
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x34], edx
call fcn.004753a0
mov ebp, eax
test eax, eax
mov edx, dword [esp + 0x34]
je 0x475fb3
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x34], edx
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
test eax, eax
mov edx, dword [esp + 0x34]
je 0x475ffe
lea ebx, [esi + 0x28]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475cc2
xor eax, eax
movzx ecx, byte [edx + eax]
mov cx, word [ebx + ecx*2]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [esi + 0x14]
jb 0x475def
jmp 0x475cc2
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
mov eax, dword [esi + 0x14]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov edx, eax
test eax, eax
je 0x475f2c
mov eax, dword [esp + 0xc0]
add eax, 0x1f
shr eax, 3
and eax, 0xfffffffe
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x20
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x34], edx
call fcn.004753a0
mov ebp, eax
test eax, eax
mov edx, dword [esp + 0x34]
je 0x475fb3
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x34], edx
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
test eax, eax
mov edx, dword [esp + 0x34]
je 0x475ffe
mov eax, dword [esi + 0x14]
add eax, edx
cmp edx, eax
jae 0x475cc2
not byte [edx]
inc edx
cmp edx, eax
jne 0x475f1d
jmp 0x475cc2
xor ebp, ebp
jmp 0x475cc2
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
mov eax, dword [esi + 0x14]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov edx, eax
test eax, eax
je 0x475f2c
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x10
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x34], edx
call fcn.004753a0
mov ebp, eax
test eax, eax
mov edx, dword [esp + 0x34]
jne 0x475c81
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
jmp 0x475cc2
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
mov dword [esp], ebp
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
xor ebp, ebp
jmp 0x475cc2
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
jmp 0x475cc2
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
mov dword [esp], ebp
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
xor ebp, ebp
jmp 0x475cc2