Function at 0x46b4f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x663980
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
mov eax, dword [0x6d35d0]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [edi + 8]
mov ebx, dword [eax + 8]
mov eax, dword [ebx + 0x13958]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, dword [ebx + 0xdf480]
mov ecx, dword [ebx + 0x1395c]
fdiv qword [0x6a1590]
xor ebp, ebp
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x14]
cmp eax, ebp
je 0x46b552
mov eax, dword [eax + 0xc]
jmp 0x46b554
xor eax, eax
mov edx, dword [eax + 0x2c0]
mov eax, dword [eax + 0x2c4]
mov esi, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x94], esi
je 0x46b598
mov dword [ebx + 0x306c], esi
mov dword [ebx + 0x2fc0], esi
mov eax, dword [edi + 8]
mov eax, dword [eax + 8]
lea esi, [eax + 0x2014]
call fcn.0047559d
mov esi, 1
mov eax, dword [esp + 0x94]
sub eax, ebp
je 0x46b607
sub eax, esi
jne 0x46b671
push 0x10
push str.obj_a999_002.bmp
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], al
call fcn.00404c00
push ebp
push esi
mov dword [esp + 0x94], esi
mov edx, dword [edi + 0x260]
mov edx, dword [edx + 0x140]
lea ecx, [edi + 0x260]
push 0x15
lea eax, [esp + 0x44]
push eax
call edx
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x50], 0x10
jb 0x46b671
mov eax, dword [esp + 0x3c]
jmp 0x46b668
push 0x10
push str.obj_a999_001.bmp
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebp
mov byte [esp + 0x70], 0
call fcn.00404c00
push ebp
push esi
mov dword [esp + 0x94], ebp
mov edx, dword [edi + 0x260]
mov edx, dword [edx + 0x140]
lea ecx, [edi + 0x260]
push 0x15
lea eax, [esp + 0x70]
push eax
call edx
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x7c], 0x10
jb 0x46b671
mov eax, dword [esp + 0x68]
push eax
call fcn.0046efcb
add esp, 4
lea eax, [edi + 0x484]
mov dword [edi + 0x4a4], ebp
call fcn.00443fe0
lea esi, [edi + 0x388]
mov dword [edi + 0x4a0], ebp
mov dword [edi + 0x49c], ebp
mov ebp, esi
mov dword [esp + 0x94], 2
mov edx, dword [ebp]
mov eax, dword [edx]
mov ecx, ebp
call eax
add ebp, 0x78
sub dword [esp + 0x94], 1
jne 0x46b6a1
xor eax, eax
mov edx, dword [esi]
mov dword [esp + 0x24], 4
push dword [esp + 0x24]
mov edx, dword [edx + 0x84]
push eax
xor ecx, ecx
mov eax, 3
push eax
push ecx
mov dword [esp + 0x3c], 2
mov eax, dword [esp + 0x3c]
push eax
xor eax, eax
push eax
mov eax, 1
push eax
xor eax, eax
push eax
push ecx
push eax
mov eax, 5
push eax
mov dword [esp + 0x64], 1
mov eax, dword [esp + 0x64]
push eax
mov dword [esp + 0x64], ecx
lea ebp, [edi + 0x4e0]
push ebp
mov ecx, esi
call edx
mov eax, dword [ebx + 0x13958]
mov ecx, dword [ebx + 0x1395c]
mov edx, dword [ebp]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x24], ecx
push eax
mov ecx, ebp
call edx
fild dword [esp + 0x20]
fld qword [0x6a1448]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x94]
fld dword [esp + 0x94]
fild dword [eax]
fmulp st(2)
fld dword [esp + 0x14]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x94]
fsub dword [esp + 0x94]
fstp dword [esp + 0x94]
fld dword [esp + 0x94]
call fcn.00631650
fmul qword [0x6a1d38]
mov ebx, eax
call fcn.00631650
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x2c]
push ebx
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call edx
mov ebp, dword [eax]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
add ebp, dword [esp + 0x18]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call edx
mov ebx, dword [eax + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
add ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call edx
fild dword [eax]
fmul dword [esp + 0x14]
call fcn.00631650
mov dword [esp + 0x94], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x94]
add ecx, edx
add ecx, dword [eax]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call edx
fild dword [eax + 4]
fmul dword [esp + 0x14]
call fcn.00631650
mov dword [esp + 0x94], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call edx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x94]
mov edx, dword [esi]
add eax, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
push 0
push esi
lea eax, [edi + 0x478]
push eax
call fcn.00442680
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 8]
mov dword [edi + 0x480], edx
mov dword [edi + 0x4a4], 2
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4