Function at 0x54518e
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x6621f4]
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 0x78]
push edi
mov eax, dword [esi + ebx*4 + 0x34]
mov edi, dword [esi + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x10]
lea ebp, [esi + ebx*4 + 0x34]
push eax
mov edx, dword [ecx]
and edi, 7
mov dword [esp + 0x24], eax
call dword [edx + 0x48]
dec edi
cmp ebx, edi
je 0x5451f1
mov eax, edi
sub eax, ebx
shl eax, 2
mov dword [esp + 0x40], eax
push eax
lea eax, [esi + ebx*4 + 0x38]
push eax
push ebp
call fcn.0060a650
mov ecx, dword [esp + 0x4c]
lea edx, [esi + ebx*4 + 0x1c]
push ecx
lea eax, [esi + ebx*4 + 0x18]
push edx
push eax
call fcn.0060a650
mov ecx, dword [esp + 0x38]
add esp, 0x18
mov dword [esi + edi*4 + 0x34], ecx
jmp 0x545253
mov ecx, dword [esi + 0x50]
test edi, edi
je 0x545222
mov eax, dword [esi + edi*4 + 0x30]
test eax, eax
mov dword [ecx + 0x44], eax
je 0x545218
mov edx, dword [eax + 4]
mov eax, dword [ecx + 0x48]
add edx, 0x50
push edx
push eax
call fcn.0058f530
add esp, 8
jmp 0x545253
mov ecx, dword [ecx + 0x48]
call fcn.004b1da0
jmp 0x545253
mov eax, dword [esi + 0x10]
test eax, eax
mov dword [ecx + 0x44], eax
je 0x545241
mov edx, dword [eax + 4]
mov eax, dword [ecx + 0x48]
add edx, 0x50
push edx
push eax
call fcn.0058f530
add esp, 8
jmp 0x545249
mov ecx, dword [ecx + 0x48]
call fcn.004b1da0
mov ecx, dword [esi + 0x50]
push 0
call fcn.00446b30
mov ecx, dword [0x6621f4]
mov ebx, dword [esi + edi*4 + 0x34]
mov ebp, dword [esi + 0x14]
push 1
mov edx, dword [ecx + 0x50]
push 1
lea ecx, [ebx + 0x10]
mov dword [esp + 0x48], edx
call fcn.0041ab10
mov eax, dword [ebp + 0x2cc]
mov ecx, dword [esp + 0x40]
mov dword [ebx + 8], eax
mov dword [ebp + 0x2cc], ebx
mov dword [esi + edi*4 + 0x34], 0
mov ebx, dword [ebx + 0x18]
push ebx
mov dword [ebx + 0x20], ebp
call fcn.004b5eb0
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x10]
and ecx, 0xfffffff8
lea edx, [esp + 0x40]
or ecx, edi
lea eax, [esp + 0x30]
lea edi, [esi + 0x58]
push edx
mov dword [esi + 8], ecx
push eax
push edi
mov ecx, ebx
call fcn.00505260
cmp al, 1
jne 0x5452dc
mov ebp, dword [esp + 0x40]
xor eax, eax
xor ecx, ecx
mov al, byte [ebp + 0x10]
mov cl, byte [edi + 3]
imul eax, ecx
add eax, dword [ebp + 8]
mov dword [esp + 0x40], eax
jmp 0x5452e4
mov dword [esp + 0x40], 0
lea edx, [esp + 0x2c]
lea eax, [esp + 0x28]
push edx
push eax
push edi
mov ecx, ebx
call fcn.00505260
cmp al, 1
jne 0x545328
mov eax, dword [esp + 0x2c]
push 3
movzx dx, byte [edi + 3]
movzx cx, byte [eax + 0x11]
imul ecx, edx
add cx, word [eax + 0x16]
mov eax, dword [esp + 0x2c]
and ecx, 0xffff
push ecx
lea ecx, [eax + 0x28]
call fcn.00542e40
mov ebp, eax
jmp 0x54532a
xor ebp, ebp
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
dec ebp
push edx
push edi
mov ecx, ebx
mov dword [esp + 0x38], ebp
call fcn.00505260
cmp al, 1
jne 0x545370
mov eax, dword [esp + 0x28]
push 3
movzx dx, byte [edi + 3]
movzx cx, byte [eax + 0x11]
imul ecx, edx
add cx, word [eax + 0x16]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push ecx
push ebp
lea ecx, [eax + 0x28]
call fcn.00543a30
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push edi
call fcn.00505260
cmp al, 1
jne 0x545616
mov eax, dword [esp + 0x28]
push 3
movzx dx, byte [edi + 3]
movzx cx, byte [eax + 0x11]
imul ecx, edx
add cx, word [eax + 0x16]
mov eax, dword [esp + 0x28]
add ecx, 3
and ecx, 0xffff
push ecx
lea ecx, [eax + 0x28]
call fcn.00542e40
test eax, eax
mov dword [esp + 0x18], eax
je 0x545616
mov ecx, dword [0x6621f4]
mov edx, dword [ecx + 0x8c]
mov eax, dword [edx + 0x1c]
test eax, eax
mov dword [esp + 0x28], eax
je 0x545616
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x14]
mov dx, word [ecx + 6]
shr edx, 9
and edx, 3
mov ecx, dword [eax + edx*4 + 0x2d0]
test ecx, ecx
mov dword [esp + 0x24], ecx
jl 0x545616
fld dword [eax + 8]
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 4]
fadd st(0), st(0)
add ebx, 0x80
test ebp, ebp
mov dword [esp + 0x30], ebx
fstp dword [esp + 0x14]
jne 0x54550f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x40]
lea eax, [esp + 0x2c]
push edx
push eax
push edi
call fcn.00505260
cmp al, 1
jne 0x54546c
mov eax, dword [esp + 0x40]
push 3
movzx dx, byte [edi + 3]
movzx cx, byte [eax + 0x11]
imul ecx, edx
add cx, word [eax + 0x16]
mov eax, dword [esp + 0x30]
add ecx, 3
and ecx, 0xffff
push ecx
push ebp
lea ecx, [eax + 0x28]
call fcn.00543a30
call fcn.00403de0
and eax, 0xffff
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
fild qword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x24]
fmul dword [0x622f6c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x18], eax
fmul dword [0x622f70]
fstp dword [esp + 0x40]
fild qword [esp + 0x30]
fdivr dword [0x622f70]
fstp dword [esp + 0x2c]
push ebx
push edi
mov ecx, ebp
call fcn.0054be20
test eax, eax
je 0x5454ff
fld dword [esp + 0x2c]
fadd dword [esp + 0x40]
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], 0
push ecx
mov ecx, eax
fst dword [esp + 0x44]
fcos
fmul dword [esp + 0x18]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fsin
fmul dword [esp + 0x18]
fstp dword [esp + 0x3c]
call fcn.0054df10
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x5454ba
jmp 0x54561a
call fcn.00403de0
mov ebx, eax
mov ecx, dword [esp + 0x10]
and ebx, 0xffff
lea edx, [esp + 0x40]
imul ebx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push edi
shr ebx, 0xf
call fcn.00505260
cmp al, 1
jne 0x545570
mov eax, dword [esp + 0x40]
push 3
movzx dx, byte [edi + 3]
movzx cx, byte [eax + 0x11]
imul ecx, edx
add cx, word [eax + 0x16]
mov eax, dword [esp + 0x1c]
sub eax, ebx
add ecx, 3
and ecx, 0xffff
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x28]
call fcn.00543a30
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
cmp ebx, eax
fild qword [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
fmul dword [0x622f6c]
fmul dword [0x622f70]
fstp dword [esp + 0x40]
fild qword [esp + 0x18]
fdivr dword [0x622f70]
fstp dword [esp + 0x10]
je 0x545612
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
push edi
push ebx
mov ecx, ebp
call fcn.0054be20
test eax, eax
je 0x545607
fld dword [esp + 0x10]
fadd dword [esp + 0x40]
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], 0
push ecx
mov ecx, eax
fst dword [esp + 0x44]
fcos
fmul dword [esp + 0x18]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fsin
fmul dword [esp + 0x18]
fstp dword [esp + 0x3c]
call fcn.0054df10
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x5455c2
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jne 0x54565d
test byte [esi + 8], 7
je 0x545627
mov ecx, esi
call fcn.00544bc0
mov ecx, esi
call fcn.00544b00
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push 0
push ecx
fld dword [edx + 8]
fmul dword [0x625a58]
mov ecx, dword [eax + 4]
add ecx, 0x40
fstp dword [esp]
push ecx
call fcn.00545690
mov eax, dword [esi + 0x14]
add esp, 0xc
add eax, 0x2e6
or byte [eax], 2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov esi, dword [esi + 0x14]
push eax
mov eax, dword [ecx + 4]
mov ecx, esi
mov edx, dword [esi]
add eax, 0x80
push eax
call dword [edx + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8