Function at 0x4556c0
Capabilities:
Capture screenshot

Disassembly:
mov al, byte [esp + 8]
sub esp, 0x3c
cmp al, 0x64
push ebx
push ebp
push esi
push edi
mov edi, ecx
jbe 0x4556d6
mov byte [esp + 0x54], 0x64
mov ebx, dword [esp + 0x50]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x20], eax
jne 0x4556fc
cmp edi, eax
je 0x4556eb
mov eax, dword [edi + 0x1c]
push eax
call dword [0x491558]
mov ebx, eax
mov dword [esp + 0x20], 1
mov ebp, dword [0x491164]
push ebx
call ebp
push ebx
mov dword [esp + 0x14], eax
call ebp
mov esi, eax
push ebx
mov dword [esp + 0x54], esi
call ebp
mov ebp, eax
mov eax, dword [edi + 0x384]
push eax
push esi
call dword [0x4910e8]
mov ecx, dword [edi + 0x434]
mov edx, dword [edi + 0x430]
lea esi, [edi + 0x428]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
sub ecx, eax
mov eax, dword [esi]
sub edx, eax
push ecx
push edx
push ebx
call dword [0x4910dc]
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [0x4910e8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
sub ecx, eax
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push ebx
call dword [0x4910dc]
push eax
push ebp
mov dword [esp + 0x40], eax
call dword [0x4910e8]
mov dword [esp + 0x30], eax
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0x39c]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x3a0]
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x58], edx
call fcn.004898e9
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
mov edx, dword [esp + 0x4c]
sub ecx, edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push 0
push 0
push edx
call dword [0x491160]
lea eax, [edi + 0x408]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [edi + 0x2e8]
push ecx
push edx
call fcn.00486adb
push eax
lea ecx, [edi + 0x3c]
call fcn.00464380
mov eax, dword [edi + 0x38c]
test eax, eax
je 0x455863
mov eax, dword [edi + 0x390]
test eax, eax
je 0x455863
mov eax, dword [edi + 0x394]
test eax, eax
je 0x455863
mov ecx, dword [edi + 0x3b0]
mov edx, dword [esp + 0x10]
mov eax, dword [edi]
push ecx
push edx
mov ecx, edi
call dword [eax + 0xb8]
mov eax, dword [edi + 0x388]
test eax, eax
jne 0x4558c7
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
sub eax, edx
mov edx, dword [esi]
push eax
sub ecx, edx
push ecx
push ebx
call dword [0x4910dc]
mov edx, dword [esp + 0x50]
push eax
push edx
mov dword [edi + 0x388], eax
call dword [0x4910e8]
mov eax, dword [edi + 0x42c]
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push 0xcc0020
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 4]
sub edx, ecx
mov ecx, dword [esp + 0x5c]
push ebx
push edx
sub eax, dword [esi]
push eax
push 0
push 0
push ecx
call dword [0x491160]
jmp 0x4558d3
mov edx, dword [esp + 0x50]
push eax
push edx
call dword [0x4910e8]
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0xc]
push 0xcc0020
push 0
mov edx, dword [esi + 8]
push 0
push eax
mov eax, dword [esi + 4]
sub ecx, eax
mov eax, dword [edi + 0x42c]
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push eax
push ecx
push ebp
call dword [0x491160]
mov eax, dword [edi + 0x39c]
test eax, eax
jne 0x455919
mov eax, dword [edi + 0x3a0]
test eax, eax
je 0x455a98
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
sub edx, ecx
push edx
mov edx, dword [esp + 0x40]
sub eax, edx
push eax
push ebx
call dword [0x4910dc]
push ebx
mov dword [esp + 0x20], eax
call dword [0x491164]
xor ecx, ecx
mov edx, 0x64
mov cl, byte [edi + 0x3ac]
push 0x64
sub edx, ecx
mov dword [esp + 0x18], eax
push edx
push 0xff
call dword [0x491390]
mov edx, dword [esp + 0x54]
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
mov ecx, 0xff
and eax, 0xff
and edx, 0xff
sub ecx, eax
mov eax, 0x51eb851f
imul ecx, edx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov al, byte [esp + 0x18]
add al, dl
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
and eax, 0xff
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
call dword [0x491100]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [0x4910e8]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
push 0xff0062
sub ecx, eax
mov eax, dword [esp + 0x40]
push 0
push 0
push 0
sub edx, eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push 0
push 0
push eax
call dword [0x491160]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x3b0]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [0x4910f4]
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x491084]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [0x4910e8]
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x491154]
mov edx, dword [edi + 0x3a8]
mov eax, dword [edi + 0x3a4]
mov ecx, dword [edi + 0x398]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
mov edx, dword [edi + 0x3a0]
push eax
mov eax, dword [esp + 0x50]
sub ecx, eax
mov eax, dword [edi + 0x39c]
push ecx
push edx
push eax
push ebp
lea ecx, [edi + 0x3c]
call fcn.00464a80
mov ecx, eax
call fcn.0046da80
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x491084]
mov edx, dword [edi + 0x3b0]
push edx
push ebp
call dword [0x491080]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
and eax, 0xff
mov ecx, 0x64
sub ecx, eax
mov eax, dword [esp + 0x48]
push ecx
push 0
mov ecx, dword [esp + 0x4c]
push 0
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
mov edx, dword [edi + 0x42c]
push eax
mov eax, dword [esp + 0x50]
sub ecx, eax
mov eax, dword [esi]
push ecx
push edx
push eax
push ebp
lea ecx, [edi + 0x3c]
call fcn.00464a80
mov ecx, eax
call fcn.0046bb20
push 0
push ebp
call dword [0x491080]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
push 0xcc0020
push 0
push 0
sub ecx, eax
mov eax, dword [edi + 0x42c]
push ebp
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [0x491160]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
mov esi, dword [0x4910e8]
push edx
push eax
call esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call esi
mov eax, dword [esp + 0x30]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x34]
mov esi, dword [0x491084]
push ecx
call esi
mov edx, dword [esp + 0x38]
push edx
call esi
mov eax, dword [esp + 0x50]
mov esi, dword [0x491154]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push ebp
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x455b9d
test edi, edi
jne 0x455b92
push ebx
push edi
call dword [0x491564]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8
mov edi, dword [edi + 0x1c]
push ebx
push edi
call dword [0x491564]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8