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

Disassembly:
mov al, byte [0x620cf4]
sub esp, 0x178
test al, al
mov eax, dword [0x620cd4]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x542fc9
mov ecx, dword [eax]
push 0
push 7
push eax
call dword [ecx + 0xc8]
jmp 0x542fd6
mov edx, dword [eax]
push 1
push 7
push eax
call dword [edx + 0xc8]
mov al, byte [0x620cf4]
test al, al
mov eax, dword [0x620cd4]
jne 0x542ff3
mov ecx, dword [eax]
push 0
push 0xe
push eax
call dword [ecx + 0xc8]
jmp 0x543000
mov edx, dword [eax]
push 1
push 0xe
push eax
call dword [edx + 0xc8]
mov eax, dword [0x620cd4]
push 1
push 0x16
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x620cd4]
push 1
push 0x1b
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [0x620cd4]
push 5
push 0x13
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x620cd4]
push 6
push 0x14
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [0x620cd4]
push 4
push 4
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xfc]
mov eax, dword [0x620cd4]
push 2
push 5
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0xfc]
mov eax, dword [0x620cd4]
push 0
push 6
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xfc]
mov al, byte [0x620ce8]
mov byte [0x620f08], 0
test al, al
mov eax, dword [0x620cd4]
jne 0x5430ab
mov edx, dword [eax]
push 0
push 0x89
push eax
call dword [edx + 0xc8]
jmp 0x5430bb
mov ecx, dword [eax]
push 0
push 0x89
push eax
call dword [ecx + 0xc8]
mov dword [0x620cf8], 8
mov dword [0x620cfc], 0x142
mov dword [0x620d00], 0
mov edx, dword [ebp + 0x74]
push 0x18
push edx
push 0
mov ecx, 0x620cd0
call fcn.0040d450
mov eax, dword [0x620cd4]
push 0x142
push eax
mov ecx, dword [eax]
call dword [ecx + 0x130]
mov ecx, 0x620cd0
call fcn.0040dae0
mov ecx, 0x620cd0
call fcn.0040cf90
push 0
push 0x3f800000
push 0
push 2
push 0
push 0
mov ecx, 0x620cd0
call fcn.0040d7e0
lea edx, [ebp + 4]
mov ecx, 0x620cd0
push edx
call fcn.0040cfd0
fld dword [ebp + 0x234]
fcomp dword [0x588314]
fnstsw ax
test ah, 0x40
je 0x543156
mov dword [esp + 0x18], 0x3f800000
jmp 0x543196
fld dword [ebp + 0x234]
call fcn.005755f0
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
mov dword [esp + 0x10], eax
jg 0x543181
fild dword [esp + 0x10]
fmul dword [0x588328]
fsubr dword [0x588318]
jmp 0x543192
add eax, 0xfffffff6
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x588328]
fstp dword [esp + 0x18]
mov edx, dword [0x65ea34]
mov eax, dword [0x620cd4]
mov edx, dword [edx + 8]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0xf4]
movsx ecx, byte [ebp + 0x233]
lea ebx, [ecx + ecx*2]
lea eax, [ecx + ecx*2 + 3]
lea ebx, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl ebx, 2
shl eax, 2
cmp ebx, eax
jge 0x543465
xor edx, edx
mov dl, byte [ebp + 0x232]
cmp ebx, edx
jge 0x543465
xor eax, eax
mov al, byte [ebx + ebp + 0x181]
mov edx, eax
and edx, 0x8000000f
jns 0x5431fa
dec edx
or edx, 0xfffffff0
inc edx
shl edx, 5
shr eax, 4
mov dword [esp + 0x10], edx
lea ecx, [ecx + ecx*2]
fild dword [esp + 0x10]
shl eax, 5
mov dword [esp + 0x10], eax
lea eax, [ecx + ecx*4]
shl eax, 2
mov ecx, ebx
mov esi, 0xa
sub ecx, eax
mov dword [esp + 0x28], 0xbf800000
mov eax, ecx
mov dword [esp + 0x2c], 0x3f800000
cdq
fmul dword [0x58874c]
idiv esi
fild dword [esp + 0x10]
fmul dword [0x58874c]
fld st(1)
fadd dword [0x588cb0]
fst dword [esp + 0x20]
fld st(1)
fadd dword [0x588cb0]
fstp dword [esp + 0x10]
mov eax, 0x66666667
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], edx
imul ecx
fild dword [esp + 0x14]
fmul dword [0x5887e4]
fsub dword [0x58a1b4]
fstp dword [esp + 0x1c]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul dword [0x58a04c]
fsubr dword [0x588d18]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [0x58860c]
call fcn.005755f0
fld st(2)
mov edx, dword [esp + 0x10]
push 0
fstp dword [esp + 0x3c]
fld st(1)
shl eax, 0x18
fstp dword [esp + 0x40]
or eax, 0xffffff
mov dword [esp + 0x70], edx
fstp dword [esp + 0x54]
mov ecx, edx
mov dword [esp + 0x38], eax
fstp dword [esp + 0x58]
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], eax
fstp dword [esp + 0x6c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
mov dword [esp + 0x44], 0x3f800000
push edx
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x50], 0
mov dword [esp + 0x60], 0xbf800000
mov dword [esp + 0x64], 0xbf800000
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x7c], 0xbf800000
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [0x620cf8], 8
mov dword [0x620cfc], 0x142
mov dword [0x620d00], 0
push 0
mov eax, dword [ebp + 0x74]
push 0
push eax
mov ecx, 0x620cd0
call fcn.0040d2b0
mov edi, dword [esp + 0x24]
mov ecx, 0x18
lea esi, [esp + 0x28]
push 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x74]
push ecx
mov ecx, 0x620cd0
call fcn.0040d2f0
mov edx, dword [ebp + 0x74]
push 0x18
push edx
push 0
mov ecx, 0x620cd0
call fcn.0040d450
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0xc2700000
push eax
lea edx, [esp + 0x150]
push ecx
push edx
mov ecx, 0x65cb50
call fcn.004937c0
mov esi, eax
push 0x3f800000
push 0x3fe00000
lea eax, [esp + 0x110]
push 0x3fe00000
push eax
mov ecx, 0x65cb50
call fcn.00493790
push esi
lea ecx, [esp + 0xcc]
push eax
push ecx
call fcn.0055734a
mov eax, dword [0x620cd4]
mov ecx, 0x10
lea esi, [esp + 0xc8]
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x88]
push ecx
push 0x100
push eax
call dword [edx + 0x94]
push 2
push 0
push 5
mov ecx, 0x620cd0
call fcn.0040d710
movsx ecx, byte [ebp + 0x233]
inc ebx
lea eax, [ecx + ecx*2 + 3]
lea edx, [eax + eax*4]
shl edx, 2
cmp ebx, edx
jl 0x5431d2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x178
ret