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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58b8a8
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xe0]
cmp eax, 1
jne 0x4a5f7f
lea edi, [esi + 0xe4]
xor ebp, ebp
cmp edi, ebp
je 0x4a5f84
cmp dword [edi + 4], ebp
jne 0x4a601e
jmp 0x4a5f84
cmp eax, 2
jne 0x4a5fea
mov eax, dword [esi + 0x100]
mov edx, dword [esi + 0x104]
mov ecx, dword [esi + 0x108]
mov dword [esp + 0x24], eax
add edx, eax
mov eax, dword [esi + 0x10c]
mov dword [esp + 0x28], ecx
add eax, ecx
mov ecx, dword [esi + 0xdc]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0xa8]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xa4]
push ecx
push edx
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004a8450
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
cmp eax, 3
jne 0x4a6191
mov eax, dword [esi + 0xac]
mov ecx, dword [esp + 0x5c]
add esi, 0xf0
push eax
push esi
call fcn.00575c0d
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
lea ecx, [esp + 0x14]
call fcn.0056eed4
mov edx, dword [esi + 0xe8]
lea ecx, [esp + 0x34]
push ecx
push 0x18
push edx
mov dword [esp + 0x60], ebp
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.0056ef8b
cmp edi, ebp
jne 0x4a6058
xor edi, edi
jmp 0x4a605b
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x18]
push ebx
push edi
push eax
call fcn.0056f0cc
mov ebx, eax
mov al, byte [esi + 0xec]
test al, al
mov dword [esp + 0x14], ebx
je 0x4a611d
mov eax, dword [esi + 0x10c]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x40]
cdq
idiv ebp
test eax, eax
jl 0x4a6169
mov ebx, dword [esp + 0x3c]
mov eax, dword [esi + 0x104]
xor edi, edi
cdq
idiv ebx
test eax, eax
jl 0x4a6101
mov ecx, ebp
mov edx, dword [esi + 0x108]
imul ecx, dword [esp + 0x10]
add ecx, edx
mov edx, ebx
imul edx, edi
mov eax, dword [esi + 0x100]
push 0xcc0020
add edx, eax
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x24]
push 0
push eax
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x104]
mov ebx, dword [esp + 0x3c]
cdq
idiv ebx
mov ebp, dword [esp + 0x40]
inc edi
cmp edi, eax
jle 0x4a60a7
mov eax, dword [esi + 0x10c]
mov ecx, dword [esp + 0x10]
cdq
idiv ebp
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, eax
jle 0x4a6098
mov ebx, dword [esp + 0x14]
jmp 0x4a6169
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
mov ecx, dword [esi + 0x10c]
and eax, ebp
mov ebp, dword [esp + 0x40]
mov edx, dword [esi + 0x104]
push 0xcc0020
mov edi, dword [esi + 0x108]
push ebp
mov ebp, dword [esp + 0x44]
mov esi, dword [esi + 0x100]
push ebp
push 0
push 0
push eax
mov eax, dword [esp + 0x78]
push ecx
push edx
push edi
mov ecx, dword [eax + 4]
push esi
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
test ebx, ebx
jne 0x4a6171
xor eax, eax
jmp 0x4a6174
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
push eax
push edx
call fcn.0056f0cc
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0xffffffff
call fcn.0056f009
pop ebx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret 4