Function at 0x413230
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
mov eax, dword [esp + 0x58]
push ebp
mov ecx, dword [esp + 0x54]
push eax
mov edx, dword [esp + 0x54]
push ecx
mov dword [esp + 0x2c], esi
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
call fcn.00413710
mov dword [esp + 0x38], eax
add esp, 0xc
cmp eax, esi
je 0x413656
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
push eax
mov dword [esp + 0x20], esi
push 0x18
push ecx
call dword [0x4f67ec]
push esi
mov ebp, dword [0x4f6cf0]
dec dword [esp + 0x3c]
call ebp
mov edi, eax
test edi, edi
je 0x4132ca
mov eax, dword [esp + 0x38]
mov ebx, dword [0x4f6820]
inc eax
push eax
mov eax, dword [esp + 0x38]
add eax, 3
push eax
push edi
call ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
inc eax
push eax
push ecx
push edi
call ebx
mov dword [esp + 0x1c], eax
push edi
push esi
call dword [0x4f6cf4]
cmp dword [esp + 0x18], 0
je 0x41363f
cmp dword [esp + 0x1c], 0
je 0x41363f
push 0
mov edi, dword [0x4f67a8]
call edi
mov esi, eax
test esi, esi
je 0x4135f7
push 0
call edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4135e4
mov eax, dword [esp + 0x18]
push eax
push esi
call dword [0x4f67a0]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4135ca
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [0x4f67a0]
mov dword [esp + 0x48], eax
test eax, eax
je 0x4135b4
push 0xff00
push esi
call dword [0x4f6824]
mov edi, eax
push 0xffffff
push esi
xor ebp, ebp
call dword [0x4f67d4]
push edi
push esi
call dword [0x4f67b0]
mov ebx, dword [esp + 0x34]
cmp dword [esp + 0x38], ebp
jl 0x413389
push 0
push ebp
push ebx
push esi
call dword [0x4f681c]
push 0xffffff
lea eax, [ebx + 1]
push ebp
push eax
push esi
inc ebp
call dword [0x4f681c]
cmp ebp, dword [esp + 0x38]
jle 0x413366
mov eax, dword [esp + 0x14]
push 0xcc0020
mov ecx, dword [esp + 0x3c]
push 0
mov edx, dword [esp + 0x3c]
push 0
push eax
push ecx
push edx
push 0
push 0
push esi
call dword [0x4f67a4]
test eax, eax
je 0x41359a
push 4
xor ebx, ebx
call dword [0x4f68e0]
push eax
push esi
call dword [0x4f67a0]
mov ebp, dword [0x4f682c]
cmp dword [esp + 0x34], ebx
jle 0x4133f8
push 0
push ebx
push esi
call ebp
cmp eax, edi
jne 0x4133f1
push 1
push edi
push 0
push ebx
push esi
call dword [0x4f6818]
mov dword [esp + 0x20], 1
inc ebx
cmp dword [esp + 0x34], ebx
jg 0x4133d2
xor ebx, ebx
cmp dword [esp + 0x38], ebx
jle 0x41343e
mov eax, dword [esp + 0x34]
push ebx
dec eax
push eax
push esi
call ebp
cmp eax, edi
jne 0x413437
mov eax, dword [esp + 0x34]
push 1
push edi
dec eax
push ebx
push eax
push esi
call dword [0x4f6818]
mov eax, dword [esp + 0x34]
push 0
push ebx
dec eax
mov dword [esp + 0x28], 1
push eax
push esi
call dword [0x4f681c]
inc ebx
cmp ebx, dword [esp + 0x38]
jl 0x413400
xor ebx, ebx
cmp dword [esp + 0x34], ebx
jle 0x413474
mov eax, dword [esp + 0x38]
dec eax
push eax
push ebx
push esi
call ebp
cmp eax, edi
jne 0x41346d
mov eax, dword [esp + 0x38]
push 1
push edi
dec eax
push eax
push ebx
push esi
call dword [0x4f6818]
mov dword [esp + 0x20], 1
inc ebx
cmp dword [esp + 0x34], ebx
jg 0x413446
xor ebx, ebx
cmp dword [esp + 0x38], ebx
jle 0x4134a2
push ebx
push 0
push esi
call ebp
cmp eax, edi
jne 0x41349b
push 1
push edi
push ebx
push 0
push esi
call dword [0x4f6818]
mov dword [esp + 0x20], 1
inc ebx
cmp ebx, dword [esp + 0x38]
jl 0x41347c
mov eax, dword [esp + 0x28]
push eax
push esi
call dword [0x4f67a0]
cmp dword [esp + 0x20], 0
je 0x41358e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [0x4f67a0]
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [0x4f67a0]
mov ecx, dword [esp + 0x14]
push 0xcc0020
mov edx, dword [esp + 0x3c]
push 0
mov eax, dword [esp + 0x3c]
push 0
push ecx
push edx
push eax
push 0
push 0
push esi
call dword [0x4f67a4]
mov ecx, dword [esp + 0x28]
push ecx
push esi
call dword [0x4f67a0]
mov ecx, dword [esp + 0x1c]
push 0
push 8
push 0x8000
push ecx
call fcn.00412550
mov dword [esp + 0x34], eax
add esp, 0x10
test eax, eax
je 0x41359a
push eax
call fcn.00413af0
add esp, 4
mov edi, eax
test edi, edi
je 0x41359a
push edi
call dword [0x4f6aac]
mov ebx, dword [eax]
push eax
add ebx, eax
call fcn.004123a0
add esp, 4
test eax, eax
jle 0x41357f
dec eax
js 0x41357f
lea edx, [ebx + eax*4]
mov ecx, dword [esp + 0x60]
cmp ecx, 0xffffff
jne 0x413565
test dword [edx], 0xffffff
je 0x413579
jmp 0x413573
test dword [edx], 0xffffff
mov dword [edx], 0
jne 0x413579
mov dword [edx], 0xffffff
sub edx, 4
dec eax
jns 0x413553
push edi
call dword [0x4f6aa4]
mov eax, dword [esp + 0x58]
mov dword [eax], edi
jmp 0x4135a2
mov eax, dword [esp + 0x58]
mov dword [eax], 0
jmp 0x4135a2
mov dword [esp + 0x10], 8
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [0x4f67a0]
jmp 0x4135bc
mov dword [esp + 0x10], 8
mov eax, dword [esp + 0x28]
push eax
push esi
call dword [0x4f67a0]
jmp 0x4135d2
mov dword [esp + 0x10], 8
mov eax, dword [esp + 0x14]
mov edi, dword [0x4f679c]
push eax
call edi
push esi
call edi
jmp 0x4135ff
mov edi, dword [0x4f679c]
push esi
mov dword [esp + 0x14], 8
call edi
jmp 0x4135ff
mov dword [esp + 0x10], 8
cmp dword [esp + 0x18], 0
je 0x413615
mov eax, dword [esp + 0x18]
mov esi, dword [0x4f677c]
push eax
call esi
jmp 0x41361b
mov esi, dword [0x4f677c]
cmp dword [esp + 0x1c], 0
je 0x413629
mov eax, dword [esp + 0x1c]
push eax
call esi
cmp dword [esp + 0x24], 0
je 0x41364d
mov eax, dword [esp + 0x24]
push eax
call fcn.00479b40
add esp, 4
jmp 0x41364d
mov dword [esp + 0x10], 8
mov esi, dword [0x4f677c]
mov eax, dword [esp + 0x2c]
push eax
call esi
jmp 0x41365e
mov dword [esp + 0x10], 8
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret