Function at 0x713da0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x782c10
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [0x88b12c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
push 0x27
call edx
test eax, eax
jne 0x713e0a
mov ecx, ebx
call fcn.007486a0
lea ecx, [ebx + 0x260]
call fcn.004363d0
mov eax, dword [ebx + 0x220]
mov ecx, dword [eax + 0x3178]
lea edx, [ebx + 0x4e0]
mov dword [esp + 0x28], ecx
xor edi, edi
lea esi, [ebx + 0x390]
mov dword [esp + 0x14], edx
lea esp, [esp]
fldz
mov eax, dword [esp + 0x14]
fcomp qword [eax]
fnstsw ax
test ah, 5
jp 0x713e48
call fcn.004364c0
test al, al
je 0x713e58
add dword [esp + 0x14], 8
inc edi
add esi, 0x70
cmp edi, 3
jl 0x713e30
jmp 0x713e7d
mov eax, dword [ebx + edi*4 + 0x4f8]
cmp eax, 0x32
jge 0x713e6e
inc eax
mov dword [ebx + edi*4 + 0x4f8], eax
jmp 0x713e7d
imul edi, edi, 0x70
lea ecx, [edi + ebx + 0x390]
call fcn.004363d0
cmp dword [ebx + 0x20], 0
je 0x71469f
mov ecx, dword [ebx + 0x52c]
sub ecx, dword [ebx + 0x528]
xor edi, edi
sar ecx, 4
test ecx, ecx
jbe 0x71431d
xor esi, esi
mov dword [esp + 0x14], esi
push 0xe
xor edx, edx
push str.Gold_Collected
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
mov word [esp + 0x38], dx
call fcn.00403a80
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x10c], esi
mov eax, dword [0x88b148]
push 0xd7
add eax, 0x7ec
lea esi, [esp + 0xa4]
call fcn.004711e0
mov byte [esp + 0x108], 2
cmp dword [esp + 0x44], 8
jb 0x713f0c
mov ecx, dword [esp + 0x30]
push ecx
call fcn.006441c7
add esp, 4
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
push 0x12
mov dword [esp + 0x44], ecx
xor edx, edx
mov dword [esp + 0x60], ecx
xor eax, eax
push str.Diamonds_Collected
lea ecx, [esp + 0x50]
mov word [esp + 0x38], dx
mov word [esp + 0x54], ax
call fcn.00403a80
lea ecx, [esp + 0x48]
mov byte [esp + 0x108], 3
mov eax, dword [0x88b148]
push ecx
push 0xd8
add eax, 0x7ec
lea esi, [esp + 0xc0]
call fcn.004711e0
mov byte [esp + 0x108], 5
cmp dword [esp + 0x60], 8
jb 0x713f85
mov edx, dword [esp + 0x4c]
push edx
call fcn.006441c7
add esp, 4
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], eax
push 0x13
mov dword [esp + 0x60], ecx
xor edx, edx
mov dword [esp + 0x44], ecx
xor eax, eax
push str.Artifacts_Collected
lea ecx, [esp + 0x34]
mov word [esp + 0x54], dx
mov word [esp + 0x38], ax
call fcn.00403a80
lea ecx, [esp + 0x2c]
mov byte [esp + 0x108], 6
mov eax, dword [0x88b148]
push ecx
push 0xd9
add eax, 0x7ec
lea esi, [esp + 0xdc]
call fcn.004711e0
cmp dword [esp + 0x44], 8
jb 0x713ff6
mov edx, dword [esp + 0x30]
push edx
call fcn.006441c7
add esp, 4
mov dword [esp + 0x108], 7
mov eax, dword [ebx + 0x52c]
sub eax, dword [ebx + 0x528]
sar eax, 4
cmp edi, eax
jb 0x714019
call fcn.006441b7
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 0x110]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x10c]
mov eax, dword [ebx + 0x528]
add eax, dword [esp + 0x14]
mov edx, dword [eax]
cmp ecx, edx
jl 0x714059
mov esi, dword [eax + 8]
add esi, edx
cmp ecx, esi
jge 0x714059
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jl 0x714059
mov eax, dword [eax + 0xc]
add eax, ecx
cmp edx, eax
jl 0x71409e
push fcn.00406fb0
push 3
push 0x1c
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0x118], 0xffffffff
call fcn.0064441b
mov edx, dword [ebx + 0x52c]
sub edx, dword [ebx + 0x528]
add dword [esp + 0x14], 0x10
inc edi
sar edx, 4
cmp edi, edx
jae 0x71431d
xor esi, esi
jmp 0x713ea6
push 3
xor eax, eax
push 0x80b29c
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
call fcn.00403a80
mov byte [esp + 0x108], 8
mov ecx, dword [ebx + 0x52c]
sub ecx, dword [ebx + 0x528]
sar ecx, 4
cmp edi, ecx
jb 0x7140e5
call fcn.006441b7
mov edx, dword [0x88b12c]
mov eax, dword [edx + 0x9e0]
lea edx, [eax + eax*4]
add edx, edx
mov ecx, dword [ebx + 0x528]
add edx, edx
mov eax, 0x1b4e81b5
imul edx
mov eax, edx
sar eax, 7
mov edx, eax
shr edx, 0x1f
add edx, eax
mov eax, dword [ebx + 0x52c]
sub eax, dword [ebx + 0x528]
mov esi, edi
shl esi, 4
add ecx, esi
sar eax, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
cmp edi, eax
jb 0x714140
call fcn.006441b7
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x528]
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x52c]
sub eax, dword [ebx + 0x528]
sar eax, 4
cmp edi, eax
jb 0x71416c
call fcn.006441b7
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
mov eax, dword [ebx + 0x528]
add ecx, edx
add eax, esi
mov eax, dword [eax + 8]
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sub esp, 8
sar eax, 1
add eax, dword [edx]
mov edx, esp
mov dword [edx], eax
mov eax, dword [0x88b12c]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x9e0]
imul ecx, ecx, 0x190
mov eax, 0x1b4e81b5
imul ecx
mov dword [esp + 0x20], esp
push 0xffffffffffffffff
sar edx, 7
push 0
mov ecx, edx
shr ecx, 0x1f
push 0x19
add ecx, edx
mov edx, dword [esp + 0x3c]
push 1
push ecx
mov ecx, dword [edx + edi*4 + 0x3c4]
lea esi, [esp + 0x80]
call fcn.00439440
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x128], 9
mov eax, dword [0x88b148]
push 0xda
add eax, 0x7ec
lea esi, [esp + 0x6c]
call fcn.004711e0
mov byte [esp + 0x124], 0xa
mov ecx, dword [esp + 0x3c]
mov edx, 8
cmp dword [ecx + 0x18], edx
jb 0x71421b
mov ecx, dword [ecx + 4]
jmp 0x71421e
add ecx, 4
cmp dword [eax + 0x18], edx
jb 0x714228
mov eax, dword [eax + 4]
jmp 0x71422b
add eax, 4
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x50], esp
push ecx
push eax
call fcn.00439a90
sub esp, 0x14
mov ecx, esp
mov byte [esp + 0x15c], 0xb
mov dword [esp + 0x74], esp
lea eax, [edi*8]
sub eax, edi
xor edx, edx
push 0xffffffffffffffff
lea eax, [esp + eax*4 + 0xf4]
push edx
mov edi, 7
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], 0
push eax
mov word [ecx + 4], dx
call fcn.00401880
mov eax, dword [0x88b12c]
mov ecx, dword [eax + 0xbe8]
push ebx
push ecx
xor edx, edx
xor ecx, ecx
mov byte [esp + 0x164], 0xa
call fcn.0066abb0
mov esi, 8
cmp dword [esp + 0x60], esi
jb 0x7142b0
mov edx, dword [esp + 0x4c]
push edx
call fcn.006441c7
add esp, 4
xor eax, eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
cmp dword [esp + 0x7c], esi
jb 0x7142d6
mov ecx, dword [esp + 0x68]
push ecx
call fcn.006441c7
add esp, 4
xor edx, edx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], 0
mov word [esp + 0x68], dx
cmp dword [esp + 0x44], esi
jb 0x7142fc
mov eax, dword [esp + 0x30]
push eax
call fcn.006441c7
add esp, 4
push fcn.00406fb0
push 3
push 0x1c
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0x118], 0xffffffff
call fcn.0064441b
xor esi, esi
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x1c0]
mov eax, dword [ebx + 0x514]
sub edx, dword [ecx + 0x1bc]
sub eax, dword [ebx + 0x510]
sar edx, 2
sar eax, 4
mov dword [esp + 0x14], esi
cmp eax, edx
jae 0x71435e
mov eax, dword [ebx + 0x514]
sub eax, dword [ebx + 0x510]
sar eax, 4
jmp 0x71436d
mov eax, dword [ecx + 0x1c0]
sub eax, dword [ecx + 0x1bc]
sar eax, 2
cmp esi, eax
jae 0x71469f
mov ecx, dword [ebx + 0x514]
sub ecx, dword [ebx + 0x510]
sar ecx, 4
cmp esi, ecx
jb 0x71438d
call fcn.006441b7
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 0x10c]
mov edi, dword [eax + 0x110]
mov eax, dword [ebx + 0x510]
add eax, dword [esp + 0x1c]
mov edx, dword [eax]
cmp ecx, edx
jl 0x7143c9
mov esi, dword [eax + 8]
add esi, edx
cmp ecx, esi
jge 0x7143c5
mov ecx, dword [eax + 4]
cmp edi, ecx
jl 0x7143c5
mov edx, dword [eax + 0xc]
add edx, ecx
cmp edi, edx
jl 0x7143d4
mov esi, dword [esp + 0x14]
inc esi
add dword [esp + 0x1c], 0x10
jmp 0x714323
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x1c0]
sub eax, dword [esi + 0x1bc]
mov edi, dword [esp + 0x14]
sar eax, 2
cmp edi, eax
jb 0x7143f4
call fcn.006441b7
mov ecx, dword [esi + 0x1bc]
lea eax, [ecx + edi*4]
mov edi, dword [eax]
mov ecx, dword [esi + 0x120]
sub ecx, dword [esi + 0x11c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x714425
call fcn.006441b7
imul edi, edi, 0x64
add edi, dword [esi + 0x11c]
xor ecx, ecx
push 3
mov word [esp + 0x34], cx
push 0x80b2a4
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
call fcn.00403a80
mov esi, dword [esp + 0x14]
mov dword [esp + 0x108], 0xc
mov edx, dword [ebx + 0x514]
sub edx, dword [ebx + 0x510]
sar edx, 4
cmp esi, edx
jb 0x714480
call fcn.006441b7
mov eax, dword [0x88b12c]
mov eax, dword [eax + 0x9e0]
mov ecx, dword [ebx + 0x510]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov eax, 0x1b4e81b5
imul edx
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [ebx + 0x514]
sub edx, dword [ebx + 0x510]
shl esi, 4
add ecx, esi
sar edx, 4
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x14], edx
jb 0x7144d0
call fcn.006441b7
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x510]
add eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x514]
sub eax, dword [ebx + 0x510]
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x7144fa
call fcn.006441b7
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x510]
mov ecx, dword [ecx + 4]
add eax, esi
mov eax, dword [eax + 8]
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, dword [edx]
sub esp, 8
mov edx, esp
mov dword [edx], eax
mov eax, dword [0x88b12c]
add ecx, edi
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x9e0]
imul ecx, ecx, 0x190
mov eax, 0x1b4e81b5
imul ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], esp
push 0xffffffffffffffff
sar edx, 7
push 0
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x38]
push 0x19
push 1
push ecx
mov ecx, dword [edx + 0x3b4]
imul ecx, dword [eax + 0x3c]
lea esi, [esp + 0x9c]
call fcn.00439440
mov edi, eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x124], 0xd
mov eax, dword [0x88b148]
push ecx
push 0xdb
add eax, 0x7ec
lea esi, [esp + 0x88]
call fcn.004711e0
mov ecx, 8
mov byte [esp + 0x124], 0xe
cmp dword [edi + 0x18], ecx
jb 0x7145ad
mov edi, dword [edi + 4]
jmp 0x7145b0
add edi, 4
cmp dword [eax + 0x18], ecx
jb 0x7145ba
mov eax, dword [eax + 4]
jmp 0x7145bd
add eax, 4
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x50], esp
push edi
push eax
call fcn.00439a90
mov byte [esp + 0x148], 0xf
mov eax, dword [esp + 0x60]
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x74], esp
xor edx, edx
push 0xffffffffffffffff
add eax, 0x1c
push edx
mov esi, 7
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], 0
push eax
mov word [ecx + 4], dx
call fcn.00401880
mov eax, dword [0x88b12c]
mov ecx, dword [eax + 0xbe8]
push ebx
push ecx
xor edx, edx
xor ecx, ecx
mov byte [esp + 0x164], 0xe
call fcn.0066abb0
mov edi, 8
cmp dword [esp + 0x7c], edi
jb 0x714639
mov edx, dword [esp + 0x68]
push edx
call fcn.006441c7
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
cmp dword [esp + 0x98], edi
jb 0x714665
mov ecx, dword [esp + 0x84]
push ecx
call fcn.006441c7
add esp, 4
xor edx, edx
mov dword [esp + 0x108], 0xffffffff
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], 0
mov word [esp + 0x84], dx
cmp dword [esp + 0x44], edi
jb 0x71469f
mov eax, dword [esp + 0x30]
push eax
call fcn.006441c7
add esp, 4
call fcn.00437c00
cdq
mov ecx, 0x4e20
idiv ecx
cmp edx, dword [ebx + 0x53c]
jge 0x7147cd
push 0xd
call fcn.007079c0
mov edi, eax
call fcn.00437c00
call fcn.00437c00
fld dword [edi + 0x20]
fmul qword [0x82def0]
fstp dword [edi + 0x20]
call fcn.00437c00
call fcn.00437c00
cdq
idiv dword [ebx + 0x53c]
add edx, dword [ebx + 0x534]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fstp dword [edi + 0x10]
call fcn.00437c00
cdq
idiv dword [ebx + 0x540]
push 0xff
push 0xff
lea eax, [esp + 0x50]
add edx, dword [ebx + 0x538]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
mov edx, 0xff
mov ecx, edx
fstp dword [edi + 0x14]
call fcn.004348b0
mov edx, dword [eax]
fld dword [0x82e168]
mov dword [edi + 0x70], edx
mov ecx, dword [eax + 4]
mov dword [edi + 0x74], ecx
mov edx, dword [eax + 8]
mov dword [edi + 0x78], edx
mov eax, dword [eax + 0xc]
fstp dword [edi + 0x5c]
mov dword [edi + 0x7c], eax
mov byte [edi + 0x194], 1
call fcn.00437c00
cdq
mov ecx, 0xf4240
idiv ecx
push ecx
sub edx, 0x7a120
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fdiv qword [0x82dd28]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.00409960
fmul qword [0x82dfb8]
add esp, 4
lea esi, [esp + 0x48]
mov dword [esp + 0x24], edi
fadd qword [0x82ddd8]
fstp dword [edi + 0x58]
mov ebx, dword [ebx + 0x544]
mov edx, dword [edi + 8]
lea eax, [ebx + 0xbc]
mov dword [esp + 0x18], ebx
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], edx
call fcn.00418740
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1b8], eax
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00643db8
mov esp, ebp
pop ebp
ret