Function at 0x5149a0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x65327a
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
lea ecx, [esp + 0x34]
call fcn.004a42c0
mov edi, 0x661a40
mov dword [esp + 0x34], edi
mov eax, dword [esi + 0x20]
mov dword [esp + 0x64], 0
push eax
call dword [fcn.0065f510]
push eax
call fcn.00644092
mov ecx, dword [esi + 0x4c]
mov ebp, eax
or eax, 0xffffffff
mov dword [esp + 0x24], ebp
cmp ecx, eax
jne 0x514a1c
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], eax
mov dword [esp + 0x34], edi
call fcn.0040c230
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [fcn.0065f4d0]
push 0x10
call fcn.00643b70
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x64], 1
je 0x514a4d
mov ecx, eax
call fcn.0064414c
mov edi, eax
jmp 0x514a4f
xor edi, edi
test ebp, ebp
mov byte [esp + 0x64], 0
jne 0x514a5c
xor eax, eax
jmp 0x514a5f
mov eax, dword [ebp + 4]
push eax
call dword [fcn.0065e0d0]
push eax
mov ecx, edi
call fcn.00644146
lea ecx, [esp + 0x2c]
call fcn.004a42c0
mov dword [esp + 0x2c], 0x661a18
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
sub eax, ecx
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [ebp + 4]
sub ecx, ebx
push ecx
push eax
mov byte [esp + 0x70], 2
call dword [fcn.0065e0c8]
push eax
lea ecx, [esp + 0x30]
call fcn.006440f8
mov ebp, dword [esp + 0x30]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ebp
push eax
push ecx
call fcn.00644140
mov eax, dword [esi + 0x7c]
mov ebx, 1
push eax
push ebx
push 0
call dword [fcn.0065e0c4]
push eax
lea ecx, [esp + 0x38]
call fcn.006440f8
lea edx, [esp + 0x34]
mov ecx, edi
push edx
call fcn.0064407a
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x4c]
cmp eax, ebx
mov eax, dword [esi + 0xa4]
jne 0x514fe1
mov ebp, dword [0x65f570]
test eax, eax
jne 0x514b84
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0x14]
push eax
call fcn.0064408c
test eax, eax
je 0x514b21
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x4c]
push eax
push ecx
push edx
call ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x666e8c
call fcn.0040c230
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
sub eax, edx
mov edx, dword [esp + 0x50]
dec eax
sub ecx, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x84]
dec ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x80]
push 0
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
mov ecx, 0x898828
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.005115e0
cmp dword [esi + 0xa4], ebx
jne 0x514be9
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0x14]
push eax
call fcn.0064408c
test eax, eax
je 0x514ba0
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x4c]
push eax
push ecx
push edx
call ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x666e8c
call fcn.0040c230
mov eax, dword [esi + 0x98]
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub ecx, eax
sub ecx, 2
push ecx
mov ecx, dword [esp + 0x54]
sub edx, ecx
mov ecx, edi
sub edx, 2
push edx
push ebx
push ebx
call fcn.0064413a
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
mov eax, ebx
sub eax, ecx
mov edx, ebp
sub edx, dword [esp + 0x4c]
lea ecx, [eax + eax + 2]
cmp edx, ecx
jle 0x514d28
mov ecx, dword [esi + 0xa4]
test ecx, ecx
jne 0x514d28
mov ebx, dword [fcn.0065f4dc]
lea ecx, [eax - 2]
push ecx
push eax
push 0
lea eax, [esp + 0x48]
push 0
push eax
call ebx
mov ebp, dword [fcn.0065f568]
push 1
lea ecx, [esp + 0x40]
push 1
push ecx
call ebp
mov eax, dword [esp + 0x3c]
push 1
mov ecx, dword [esp + 0x44]
sub esp, 0x10
mov edx, esp
push edi
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.00513c90
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov edx, esp
push edi
mov dword [edx], eax
mov eax, dword [esp + 0x58]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.00513f50
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
sub eax, ecx
lea edx, [esp + 0x3c]
lea ecx, [eax - 2]
push ecx
push eax
push 0
push 0
push edx
call ebx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x4c]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
sub eax, ebx
push 1
lea edx, [esp + 0x40]
lea eax, [eax + ecx - 1]
push eax
push edx
call ebp
mov ecx, dword [esp + 0x3c]
push 1
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00513c90
sub esp, 0x10
mov eax, esp
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
push edi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00514130
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov eax, ebx
sub eax, ecx
mov edx, ebp
sub edx, dword [esp + 0x4c]
lea ecx, [eax*4 + 2]
cmp edx, ecx
jle 0x514e65
cmp dword [esi + 0xa4], 1
jne 0x514e65
mov ebx, dword [fcn.0065f4dc]
lea ecx, [eax - 2]
add eax, eax
push ecx
push eax
push 0
lea eax, [esp + 0x48]
push 0
push eax
call ebx
mov ebp, dword [fcn.0065f568]
push 1
lea ecx, [esp + 0x40]
push 1
push ecx
call ebp
mov eax, dword [esp + 0x3c]
push 1
mov ecx, dword [esp + 0x44]
sub esp, 0x10
mov edx, esp
push edi
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.00513c90
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov edx, esp
push edi
mov dword [edx], eax
mov eax, dword [esp + 0x58]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.00513f50
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
sub eax, ecx
lea edx, [esp + 0x3c]
lea ecx, [eax - 2]
add eax, eax
push ecx
push eax
push 0
push 0
push edx
call ebx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x4c]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
sub eax, ebx
push 1
lea edx, [esp + 0x40]
lea eax, [eax + ecx - 1]
push eax
push edx
call ebp
mov ecx, dword [esp + 0x3c]
push 1
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00513c90
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00514130
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov eax, dword [esi + 0x78]
cmp eax, 1
mov dword [esp + 0x10], eax
jle 0x5154e1
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, edx
lea edx, [ecx + ecx + 0x2c]
mov ecx, ebp
sub ecx, dword [esp + 0x4c]
cmp ecx, edx
jle 0x5154e1
mov edx, dword [esp + 0x3c]
sub edx, eax
lea eax, [edx + edx - 2]
mov edx, dword [esp + 0x4c]
sub eax, edx
add eax, ebp
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fdiv dword [esp + 0x10]
fcom qword [0x670020]
fnstsw ax
test ah, 1
je 0x514ed6
fstp st(0)
fld dword [0x670018]
fld dword [esp + 0x14]
fsub st(1)
fld dword [esp + 0x10]
fsub dword [0x663770]
fdivp st(1)
fst dword [esp + 0x14]
fstp dword [esi + 0x54]
fadd qword [0x65f9a0]
call fcn.00645030
fild dword [esi + 0x70]
mov ebp, eax
mov dword [esi + 0x58], ebp
fmul dword [esp + 0x14]
fadd qword [0x65f9a0]
call fcn.00645030
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
sub eax, ecx
mov ecx, dword [esp + 0x44]
sub ebx, edx
lea eax, [eax + ecx + 1]
dec ebx
push ebx
lea ecx, [eax + ebp]
lea ebp, [esi + 0x5c]
push ecx
push 1
push eax
push ebp
call dword [fcn.0065f4dc]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
mov edx, dword [ebp]
mov eax, ecx
sub eax, ebx
inc eax
cmp edx, eax
jge 0x514f61
mov eax, ecx
push 0
sub eax, edx
sub eax, ebx
inc eax
push eax
push ebp
call dword [fcn.0065f568]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
mov edx, eax
sub edx, ecx
sub edx, ebx
mov ebx, dword [esp + 0x3c]
lea ebx, [edx + ebx - 1]
mov edx, dword [esi + 0x64]
cmp edx, ebx
jle 0x514f9a
mov ebx, dword [esp + 0x4c]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
sub eax, edx
sub eax, ebx
push 0
lea eax, [eax + ecx - 1]
push eax
push ebp
call dword [fcn.0065f568]
push 1
mov edx, ebp
sub esp, 0x10
mov ecx, dword [edx]
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00513c90
mov ecx, dword [ebp]
push 1
mov edx, dword [ebp + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
jmp 0x5154ce
mov ebp, dword [0x65f570]
test eax, eax
jne 0x51506f
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0x14]
push eax
call fcn.0064408c
test eax, eax
je 0x515003
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x4c]
push eax
push ecx
push edx
call ebp
mov dword [esp + 0x14], 0x661578
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 3
call fcn.0064406e
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
sub eax, edx
mov edx, dword [esp + 0x50]
dec eax
sub ecx, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x84]
dec ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x80]
push ebx
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
mov ecx, 0x898828
mov byte [esp + 0x78], 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.005115e0
cmp dword [esi + 0xa4], ebx
jne 0x5150de
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0x14]
push eax
call fcn.0064408c
test eax, eax
je 0x51508b
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x4c]
push eax
push ecx
push edx
call ebp
mov dword [esp + 0x14], 0x661578
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 4
call fcn.0064406e
mov eax, dword [esi + 0x98]
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub ecx, eax
sub ecx, 2
mov byte [esp + 0x68], 2
push ecx
mov ecx, dword [esp + 0x54]
sub edx, ecx
mov ecx, edi
sub edx, 2
push edx
push ebx
push ebx
call fcn.0064413a
mov ebp, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x58]
mov eax, ebp
sub eax, ecx
mov edx, ebx
sub edx, dword [esp + 0x50]
lea ecx, [eax + eax + 2]
cmp edx, ecx
jle 0x51521d
mov ecx, dword [esi + 0xa4]
test ecx, ecx
jne 0x51521d
mov ebx, dword [fcn.0065f4dc]
lea ecx, [eax - 2]
push eax
push ecx
push 0
lea eax, [esp + 0x48]
push 0
push eax
call ebx
mov ebp, dword [fcn.0065f568]
push 1
lea ecx, [esp + 0x40]
push 1
push ecx
call ebp
mov eax, dword [esp + 0x3c]
push 0
mov ecx, dword [esp + 0x44]
sub esp, 0x10
mov edx, esp
push edi
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.00513c90
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov edx, esp
push edi
mov dword [edx], eax
mov eax, dword [esp + 0x58]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.00514330
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
sub eax, ecx
lea edx, [esp + 0x3c]
push eax
lea ecx, [eax - 2]
push ecx
push 0
push 0
push edx
call ebx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x58]
sub eax, ebx
lea edx, [esp + 0x3c]
lea eax, [eax + ecx - 1]
push eax
push 1
push edx
call ebp
mov ecx, dword [esp + 0x3c]
push 0
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00513c90
sub esp, 0x10
mov eax, esp
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
push edi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00514550
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov eax, ebp
sub eax, ecx
mov edx, ebx
sub edx, dword [esp + 0x50]
lea ecx, [eax*4 + 2]
cmp edx, ecx
jle 0x51535c
cmp dword [esi + 0xa4], 1
jne 0x51535c
mov ebx, dword [fcn.0065f4dc]
lea ecx, [eax + eax]
add eax, 0xfffffffe
push ecx
push eax
push 0
lea eax, [esp + 0x48]
push 0
push eax
call ebx
mov ebp, dword [fcn.0065f568]
push 1
lea ecx, [esp + 0x40]
push 1
push ecx
call ebp
mov eax, dword [esp + 0x3c]
push 0
mov ecx, dword [esp + 0x44]
sub esp, 0x10
mov edx, esp
push edi
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.00513c90
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov edx, esp
push edi
mov dword [edx], eax
mov eax, dword [esp + 0x58]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.00514330
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
sub eax, ecx
lea edx, [esp + 0x3c]
lea ecx, [eax + eax]
add eax, 0xfffffffe
push ecx
push eax
push 0
push 0
push edx
call ebx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x58]
sub eax, ebx
lea edx, [esp + 0x3c]
lea eax, [eax + ecx - 1]
push eax
push 1
push edx
call ebp
mov ecx, dword [esp + 0x3c]
push 0
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00513c90
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00514550
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov eax, dword [esi + 0x78]
cmp eax, 1
mov dword [esp + 0x10], eax
jle 0x5154e1
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ecx, eax
sub ecx, edx
lea edx, [ecx + ecx + 0x2c]
mov ecx, ebx
sub ecx, dword [esp + 0x50]
cmp ecx, edx
jle 0x5154e1
mov edx, dword [esp + 0x40]
sub edx, eax
lea eax, [edx + edx - 2]
mov edx, dword [esp + 0x50]
sub eax, edx
add eax, ebx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fdiv dword [esp + 0x10]
fcom qword [0x670020]
fnstsw ax
test ah, 1
je 0x5153cd
fstp st(0)
fld dword [0x670018]
fld dword [esp + 0x14]
fsub st(1)
fld dword [esp + 0x10]
fsub dword [0x663770]
fdivp st(1)
fst dword [esp + 0x14]
fstp dword [esi + 0x54]
fadd qword [0x65f9a0]
call fcn.00645030
fild dword [esi + 0x70]
mov ebx, eax
mov dword [esi + 0x58], ebx
fmul dword [esp + 0x14]
fadd qword [0x65f9a0]
call fcn.00645030
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
sub eax, ecx
mov ecx, dword [esp + 0x48]
sub ebp, edx
lea eax, [eax + ecx + 1]
dec ebp
lea ecx, [ebx + eax]
lea ebx, [esi + 0x5c]
push ecx
push ebp
push eax
push 1
push ebx
call dword [fcn.0065f4dc]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov edx, dword [esi + 0x60]
mov ebp, ecx
sub ebp, eax
inc ebp
cmp edx, ebp
jge 0x51545a
sub ecx, eax
sub ecx, edx
inc ecx
push ecx
push 0
push ebx
call dword [fcn.0065f568]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x50]
mov edx, eax
sub edx, ebp
mov ebp, dword [esp + 0x58]
sub edx, ecx
lea ebp, [edx + ebp - 1]
mov edx, dword [esi + 0x68]
cmp edx, ebp
jle 0x51548d
sub eax, dword [esp + 0x50]
sub eax, ecx
mov ecx, dword [esp + 0x58]
sub eax, edx
lea eax, [eax + ecx - 1]
push eax
push 0
push ebx
call dword [fcn.0065f568]
push 0
mov edx, ebx
sub esp, 0x10
mov ecx, dword [edx]
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00513c90
mov ecx, dword [ebx]
push 0
mov edx, dword [ebx + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 8], ecx
push edi
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00514750
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
sub ebx, edx
sub ebp, ecx
test edi, edi
jne 0x5154f5
xor eax, eax
jmp 0x5154f8
mov eax, dword [edi + 4]
push 0xcc0020
push 0
push 0
push eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push 0
mov eax, dword [ebx + 4]
push 0
push eax
call dword [fcn.0065e0cc]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, edi
call fcn.0064407a
lea ecx, [esp + 0x34]
call fcn.0064406e
mov ecx, edi
call fcn.00644134
test edi, edi
je 0x51553f
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
lea ecx, [esp + 0x2c]
call fcn.0064406e
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [fcn.0065f4e8]
mov esi, 0x661578
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 5
call fcn.0064406e
mov dword [esp + 0x2c], 0x6602dc
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], 6
call fcn.0064406e
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret