Function at 0x516f40
Capabilities:
Load assembly via iassembly

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push esi
push edi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x65466c]
mov eax, dword [eax]
mov eax, dword [eax + 0x7c]
xor edx, edx
call fcn.0063e9b0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x9c]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
add eax, 0x54
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040b6d4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
sub eax, 0xb
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
sub eax, 0x1e0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x18]
call fcn.0040b6d4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov eax, dword [eax + 0x14]
add eax, 0x12c
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax + 0x18]
sub ecx, 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov edx, dword [eax + 0x14]
add edx, 0xd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov eax, dword [eax + 0x10]
add eax, 0xa
call fcn.0040b6d4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
push 0x64
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [eax + 0x14]
add edx, 0x74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov eax, dword [eax + 0x18]
sub eax, 0xa
sub eax, 0x14
mov ecx, 0x14
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov eax, dword [eax + 0x90]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
push 0x64
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [eax + 0x14]
add edx, 0x74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov eax, dword [eax + 0x10]
add eax, 0xa
mov ecx, 0x14
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov eax, dword [eax + 0x8c]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
push 0x14
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
add edx, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov eax, dword [eax + 0x10]
add eax, 0xa
mov ecx, 0x118
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
push 0x28
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
add edx, 0x2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov eax, dword [eax + 0x10]
add eax, 0xa
mov ecx, 0x118
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov eax, dword [eax + 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax + 0x18]
sub ecx, 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov edx, dword [eax + 0x1c]
sub edx, 0x96
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov eax, dword [eax + 0x10]
add eax, 0xa
call fcn.0040b6d4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [eax]
call dword [edx + 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
push eax
mov ecx, dword [0x6549c8]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4d4e94]
call fcn.0063bef0
mov edx, dword [ebp - 4]
mov dword [edx + 0xa4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
add eax, 4
mov edx, 0x517914
call fcn.00406e48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
push eax
mov ecx, dword [0x6540b8]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4d4e94]
call fcn.0063bef0
mov edx, dword [ebp - 4]
mov dword [edx + 0xa8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa8]
add eax, 4
mov edx, 0x517940
call fcn.00406e48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
push eax
mov ecx, dword [0x6540b8]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4d4e94]
call fcn.0063bef0
mov edx, dword [ebp - 4]
mov dword [edx + 0xac], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
add eax, 4
mov edx, 0x51797c
call fcn.00406e48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 0x14]
add eax, 0x1e
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [eax + 0x18]
sub ecx, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [eax + 0x14]
add edx, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 0x10]
add eax, 0xd
call fcn.0040b6d4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa8]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, 0x5179b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa8]
call fcn.004d69f0
add dword [ebp - 0x18], 0x22
push 0x5179f8
lea edx, [ebp - 0x34]
mov eax, dword [0x65409c]
mov eax, dword [eax]
call fcn.00621280
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00517e90
add dword [ebp - 0x18], 0x22
push 0x517a2c
lea edx, [ebp - 0x34]
mov eax, dword [0x65409c]
mov eax, dword [eax]
call fcn.00620fc0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00517e90
add dword [ebp - 0x18], 0x20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 0x14]
add eax, 0xca
add eax, 0x14
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [eax + 0x18]
sub ecx, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 0x10]
add eax, 0xc
mov edx, dword [ebp - 0x18]
call fcn.0040b6d4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc4]
mov dword [eax + 0x5c], edx
mov dword [eax + 0x58], 0x5154a0
mov edx, 0x517a7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
call fcn.004d69f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x98]
mov edx, dword [edx + 0x14]
add edx, edx
add eax, edx
mov ecx, 3
cdq
idiv ecx
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [eax + 0x1c]
add edx, 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov eax, dword [eax + 0x10]
call fcn.0040b6d4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov dl, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.00467b70
push 0x1e
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
add edx, dword [eax + 0x14]
sar edx, 1
jns 0x517461
adc edx, 0
sub edx, 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov eax, dword [eax + 0x10]
add eax, 0xa
mov ecx, 0x7e
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, 0x517afc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0xac]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc4]
mov dword [eax + 0x5c], edx
mov dword [eax + 0x58], 0x5154c0
push 0x1e
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0x18]
add eax, 0xa
mov ecx, 0x7e
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, 0x517b20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov ecx, dword [eax]
call dword [ecx + 0xac]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc4]
mov dword [eax + 0x5c], edx
mov dword [eax + 0x58], 0x515550
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
sub eax, 0xa
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax + 0x10]
sub ecx, 0x10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
sub edx, 0x38
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 0xa
call fcn.0040b6d4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
push 0x1e
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [eax + 0x14]
add edx, 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 0x10]
add eax, 0xa
mov ecx, 0x7e
call fcn.00431820
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 0x7c]
mov edx, 0x517b48
mov ecx, dword [eax]
call dword [ecx + 0xac]
mov eax, dword [0x65409c]
mov eax, dword [eax]
cmp byte [eax + 0x16], 0
je 0x51764c
push 0x1e
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [eax + 0x14]
add edx, 0xa
mov eax, dword [ebp - 0x14]
add eax, 0xa
mov ecx, 0x7e
call fcn.00431820
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 0x84]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 0x84]
mov edx, 0x517b68
mov ecx, dword [eax]
call dword [ecx + 0xac]
push 0x1e
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [eax + 0x14]
add edx, 0xa
mov eax, dword [ebp - 0x14]
add eax, 0xa
mov ecx, 0x7e
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 0x80]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 0x80]
mov edx, 0x517b90
mov ecx, dword [eax]
call dword [ecx + 0xac]
push 0x14
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
add edx, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 8
mov ecx, 0xdc
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
push 0x14
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
add edx, 0x28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 8
mov ecx, 0xdc
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
push 0x14
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
add edx, 0x3a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 8
mov ecx, 0xdc
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb8]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
push 0x14
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
add edx, 0x28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 0xfa
mov ecx, 0xdc
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xbc]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
push 0x14
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
add edx, 0x3a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 0xfa
mov ecx, 0xdc
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc0]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
sub eax, 0xa
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [eax + 0x1c]
add edx, 0xb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 4
call fcn.0040b6d4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov dl, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
mov ecx, dword [eax]
call dword [ecx]
push 0x1b
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
call fcn.0063d0e0
sub eax, 0x1b
sar eax, 1
jns 0x517831
adc eax, 0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
add eax, dword [edx + 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
call fcn.0063d100
sub eax, 0x1b
sar eax, 1
jns 0x517856
adc eax, 0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
add eax, dword [edx + 0x10]
mov ecx, 0x1b
pop edx
call fcn.00431820
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov eax, dword [eax + 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov eax, dword [eax + 0xa0]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx]
cmp byte [ebp - 5], 0
jne 0x5178e2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
mov eax, dword [eax + 0x48]
call fcn.0046cdd0
fstp dword [ebp - 0xc]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
call fcn.00514780
fld dword [ebp - 0xc]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
mov eax, dword [eax + 0x48]
call fcn.0046d110
jmp 0x517900
cmp byte [ebp - 5], 1
jne 0x517900
call fcn.00590ca0
call fcn.005967d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
call fcn.00514780
pop edi
pop esi
mov esp, ebp
pop ebp
ret