Function at 0x40ffe0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x646828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x20]
push eax
call dword [fcn.0065f510]
push eax
call fcn.00644092
mov edi, eax
mov eax, dword [esi + 0x18]
test eax, eax
mov dword [esp + 0x1c], edi
jne 0x410140
lea ecx, [esp + 0x4c]
call fcn.0064414c
test edi, edi
mov dword [esp + 0x64], 0
jne 0x41003b
xor eax, eax
jmp 0x41003e
mov eax, dword [edi + 4]
push eax
call dword [fcn.0065e0d0]
push eax
lea ecx, [esp + 0x50]
call fcn.00644146
lea eax, [esi + 0x1c]
test eax, eax
je 0x410059
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.00644140
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4100c6
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebp, dword [esi + 4]
sub edx, eax
sub ecx, ebp
mov ebx, eax
lea eax, [esp + 0x4c]
sub ecx, 0x10
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x58]
push 0
push eax
push edx
mov edx, dword [edi + 4]
push ecx
push ebx
push ebp
push edx
call dword [fcn.0065e0cc]
mov eax, dword [0x73a898]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push 0x3c
push 0x10
sub edx, 0x10
push ecx
push edx
mov ecx, edi
call fcn.0064413a
jmp 0x4100ff
mov ecx, dword [esi + 0x10]
mov ebp, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ebx, dword [esi + 4]
lea eax, [esp + 0x4c]
sub ecx, ebp
sub edx, ebx
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x58]
push 0
mov ebx, ebp
mov ebp, dword [esi + 4]
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push ebx
push ebp
push eax
call dword [fcn.0065e0cc]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41010a
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.00644140
lea ecx, [esp + 0x4c]
call fcn.00644134
mov esi, dword [esi + 0x14]
mov edx, dword [edi + 4]
push edx
mov eax, dword [esi + 0x20]
push eax
call dword [fcn.0065f4e8]
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x4c]
jmp 0x4104e7
lea ebp, [esi + 0x1c]
mov ecx, ebp
call fcn.0064406e
lea ecx, [esp + 0x3c]
call fcn.0064414c
test edi, edi
mov dword [esp + 0x64], 1
jne 0x410163
xor eax, eax
jmp 0x410166
mov eax, dword [edi + 4]
push eax
call dword [fcn.0065e0d0]
push eax
lea ecx, [esp + 0x40]
call fcn.00644146
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
lea ebx, [esi + 4]
sub eax, ecx
mov ecx, dword [ebx + 8]
push eax
sub ecx, edx
push ecx
mov ecx, dword [edi + 4]
push ecx
call dword [fcn.0065e0c8]
push eax
mov ecx, ebp
call fcn.006440f8
test ebp, ebp
je 0x4101a5
mov ebp, dword [ebp + 4]
mov edx, dword [esp + 0x40]
push ebp
push edx
call fcn.00644140
mov ecx, dword [0x73a898]
mov dword [esp + 0x28], eax
mov eax, esi
push ecx
neg eax
sbb eax, eax
lea ecx, [esp + 0x40]
and eax, ebx
push eax
call fcn.00643ed0
push 1
lea ecx, [esp + 0x40]
call fcn.0064412e
lea edx, [esp + 0x3c]
mov ecx, esi
push edx
call fcn.0040f970
xor ebp, ebp
mov dword [esp + 0x34], 0x661a2c
mov dword [esp + 0x38], ebp
push 0x69af60
push ebp
push 4
push ebp
push ebp
push 1
push ebp
push ebp
push ebp
push 0x2bc
push ebp
push ebp
push ebp
push 0x18
mov byte [esp + 0x9c], 2
call dword [fcn.0065e0c0]
push eax
lea ecx, [esp + 0x38]
call fcn.006440f8
lea eax, [esp + 0x34]
lea ecx, [esp + 0x3c]
push eax
call fcn.00644128
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], 0x661a40
mov eax, dword [0x73a9bc]
mov byte [esp + 0x64], 3
push eax
push 1
push ebp
call dword [fcn.0065e0c4]
push eax
lea ecx, [esp + 0x30]
call fcn.006440f8
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
call fcn.0064407a
mov ebp, dword [esi + 0x48]
mov dword [esp + 0x20], eax
cmp ebp, dword [esi + 0x4c]
jg 0x41038d
lea edx, [ebp + ebp*4]
lea eax, [esi + edx*2 + 0x58]
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov ecx, ebp
sub ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
idiv edi
mov edi, dword [esi + 0x17c8]
mov eax, dword [esp + 0x18]
add edi, 0x6e
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [0x826804]
imul edi, edx
add edi, 0x14
lea edx, [ecx + ecx + 0x3c]
cmp ebp, eax
mov dword [esp + 0x18], edx
jge 0x4102d4
mov eax, dword [0x73a8a0]
push eax
jmp 0x410311
lea ecx, [eax + 0x20]
cmp ebp, ecx
jge 0x4102e4
mov edx, dword [0x73a8a4]
push edx
jmp 0x410311
lea ecx, [eax + 0x54]
cmp ebp, ecx
jge 0x4102f4
mov edx, dword [0x73a8a8]
push edx
jmp 0x410311
mov ecx, dword [0x826810]
lea edx, [ecx + eax + 0x54]
cmp ebp, edx
jge 0x41030a
mov eax, dword [0x73a8ac]
push eax
jmp 0x410311
mov ecx, dword [0x73a8a0]
push ecx
lea ecx, [esp + 0x40]
call fcn.00644122
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.00643d2c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x64], 4
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push edi
call dword [edx + 0x64]
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 3
call fcn.00643d26
cmp dword [esi + 0x3c], ebp
jne 0x410372
mov eax, dword [esp + 0x18]
push 0x1c
dec eax
push 0x70
dec edi
push eax
lea ecx, [esp + 0x48]
push edi
push ecx
mov ecx, esi
call fcn.0040ff70
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x4c]
inc ebp
add ecx, 0xa
cmp ebp, eax
mov dword [esp + 0x10], ecx
jle 0x410289
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x48]
mov ebp, dword [esi + 0x44]
sub ecx, edx
mov eax, ecx
cdq
idiv ebp
mov dword [esi + 0x50], eax
mov eax, ecx
cdq
idiv ebp
mov eax, dword [esi + 0x28]
test eax, eax
mov dword [esi + 0x54], edx
je 0x410408
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
sub edx, ecx
mov ecx, dword [ebx + 8]
mov ebx, eax
sub ecx, eax
lea eax, [esp + 0x3c]
sub ecx, 0x10
mov ebp, dword [esi + 8]
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [esp + 0x44]
push 0
push 0
push eax
push edx
mov edx, dword [edi + 4]
push ecx
push ebp
push ebx
push edx
call dword [fcn.0065e0cc]
mov eax, dword [0x73a898]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push 0x3c
push 0x10
sub edx, 0x10
push ecx
push edx
mov ecx, edi
call fcn.0064413a
jmp 0x410440
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx]
sub ecx, eax
lea eax, [esp + 0x3c]
sub edx, ebp
mov ebp, dword [esi + 8]
neg eax
mov ebx, dword [ebx]
push 0xcc0020
sbb eax, eax
push 0
and eax, dword [esp + 0x48]
push 0
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push ebp
push ebx
push eax
call dword [fcn.0065e0cc]
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.0064407a
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push edx
call fcn.00644128
mov eax, dword [esp + 0x28]
test eax, eax
je 0x410467
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x44]
push eax
call fcn.00644140
lea ecx, [esp + 0x34]
call fcn.0064406e
lea ecx, [esp + 0x2c]
call fcn.0064406e
lea ecx, [esp + 0x3c]
call fcn.00644134
mov eax, dword [esi + 0x14]
mov ecx, dword [edi + 4]
push ecx
mov edx, dword [eax + 0x20]
push edx
call dword [fcn.0065f4e8]
mov edi, 0x661578
mov dword [esi + 0x18], 0
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 5
call fcn.0064406e
mov esi, 0x6602dc
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 6
call fcn.0064406e
mov dword [esp + 0x34], esi
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.0064411c
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret