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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x94]
xor ebx, ebx
cmp ecx, ebx
mov eax, 1
push edi
mov dword [esp + 0x30], eax
je 0x546802
xor edx, edx
mov eax, ecx
div dword [esi + 0x9c]
cmp eax, ebx
mov dword [esp + 0x30], eax
jne 0x546802
mov eax, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x88]
cmp eax, ecx
jbe 0x546823
mov eax, ecx
mov ecx, dword [esi + 0x9c]
imul ecx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
cmp eax, 1
fldz
fstp dword [esp + 0x58]
mov dword [esp + 0x40], ebx
jbe 0x546851
add eax, 0xffffffff
test eax, eax
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
jge 0x546847
fadd dword [0x6ddeec]
fdivr qword [0x6e2538]
fstp dword [esp + 0x58]
mov edi, dword [esi + 0x9c]
xor edx, edx
cmp ebx, edi
mov dword [esp + 0x10], ebx
jae 0x546892
lea ebp, [esi + 0x38c]
mov eax, dword [ebp]
test eax, eax
je 0x546878
cmp eax, 4
je 0x546878
cmp eax, 5
jne 0x54688c
xor ecx, ecx
cmp eax, 5
setne cl
add ebx, 1
add ebp, 0x34
or edx, ecx
cmp ebx, edi
jb 0x546867
mov dword [esp + 0x10], ebx
cmp ebx, edi
jne 0x5468bc
test edx, edx
jne 0x5468ae
mov eax, dword [esi + 0x94]
cmp dword [esp + 0x3c], eax
jne 0x5468ae
cmp eax, 1
jbe 0x5468ae
sub dword [esp + 0x3c], 1
xor ebx, ebx
mov dword [esp + 0x40], 2
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x1c]
fld dword [eax + 8]
add eax, 8
fsub dword [esi + 0x390]
xor edi, edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], edi
fstp dword [esp + 0x4c]
fld dword [eax + 4]
fsub dword [esi + 0x394]
fstp dword [esp + 0x50]
fld dword [eax + 8]
fsub dword [esi + 0x398]
fstp dword [esp + 0x54]
call fcn.0040672b
cmp dword [esp + 0x30], 1
fstp dword [esp + 0x20]
jbe 0x546911
fld dword [esp + 0x20]
fsub qword [0x6dd1a0]
fstp dword [esp + 0x20]
xor eax, eax
mov dword [0x7809e0], eax
mov dword [0x7809e4], eax
mov dword [0x7809e8], eax
mov dword [0x7809ec], eax
mov dword [0x7809f0], eax
mov dword [0x7809f4], eax
mov byte [0x7809f8], al
mov ecx, dword [esi + 0x94]
cmp ecx, edi
mov dword [esp + 0x48], edi
jbe 0x54700b
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x3c]
jb 0x54695c
mov dword [esp + 0x34], 0
jmp 0x54696c
mov eax, ebx
imul eax, eax, 0x34
mov edx, dword [eax + esi + 0x380]
mov dword [esp + 0x34], edx
xor eax, eax
xor edx, edx
xor edi, edi
cmp ecx, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edx
jbe 0x546c4b
lea ebp, [esi + 0x128]
jmp 0x546990
cmp byte [eax + 0x7809e0], 0
jne 0x5469cd
mov ecx, dword [ebp]
test ecx, ecx
jne 0x5469ab
mov byte [edi + 0x7809c0], al
add edi, 1
jmp 0x5469cd
cmp ecx, dword [esp + 0x34]
jne 0x5469c4
mov ecx, dword [esp + 0x38]
mov byte [ecx + 0x7809a0], al
add ecx, 1
mov dword [esp + 0x38], ecx
jmp 0x5469cd
mov byte [edx + 0x780980], al
add edx, 1
add eax, 1
add ebp, 0x18
cmp eax, dword [esi + 0x94]
jb 0x546990
cmp dword [esp + 0x38], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], edi
je 0x546b29
movzx ecx, byte [0x7809a0]
mov eax, ebx
imul eax, eax, 0x34
lea edi, [eax + esi]
xor eax, eax
cmp dword [edi + 0x38c], 5
mov dword [esp + 0x18], edi
sete al
test eax, eax
mov dword [esp + 0x14], eax
je 0x546a19
fldz
jmp 0x546a5c
lea edx, [ecx + ecx*2]
mov eax, dword [esi + edx*8 + 0x12c]
fld dword [eax + 8]
add eax, 8
fsub dword [edi + 0x390]
fstp dword [esp + 0x80]
fld dword [eax + 4]
fsub dword [edi + 0x394]
fstp dword [esp + 0x84]
fld dword [esp + 0x80]
fld dword [esp + 0x84]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
mov eax, 1
fstp dword [esp + 0x24]
cmp dword [esp + 0x38], eax
mov dword [esp + 0x1c], eax
jbe 0x546d71
movzx edi, byte [eax + 0x7809a0]
lea eax, [edi + edi*2]
lea edx, [ecx + ecx*2]
lea ebp, [esi + eax*8]
mov eax, dword [esi + edx*8 + 0x13c]
mov edx, dword [ebp + 0x13c]
xor edx, eax
test dl, 4
je 0x546aa6
test al, 4
je 0x546aa2
cmp dword [esp + 0x14], 0
jne 0x546b0f
mov ecx, edi
jmp 0x546b0f
cmp dword [esp + 0x14], 0
jne 0x546b0f
mov eax, dword [ebp + 0x12c]
fld dword [eax + 8]
mov edx, dword [esp + 0x18]
fsub dword [edx + 0x390]
add eax, 8
fstp dword [esp + 0x98]
fld dword [eax + 4]
fsub dword [edx + 0x394]
fstp dword [esp + 0x9c]
fld dword [esp + 0x98]
fld dword [esp + 0x9c]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x546b0d
fstp dword [esp + 0x24]
mov ecx, edi
jmp 0x546b0f
fstp st(0)
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
jb 0x546a73
jmp 0x546d71
test edi, edi
je 0x546c4b
cmp dword [esp + 0x34], 0
movzx ecx, byte [0x7809c0]
je 0x546d71
mov eax, ebx
imul eax, eax, 0x34
lea ebp, [eax + esi]
xor edx, edx
cmp dword [ebp + 0x38c], 5
lea eax, [ecx + ecx*2]
mov eax, dword [esi + eax*8 + 0x12c]
sete dl
add eax, 8
fld dword [eax]
fsub dword [ebp + 0x390]
fstp dword [esp + 0x5c]
fld dword [eax + 4]
mov eax, 1
cmp edi, eax
fsub dword [ebp + 0x394]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x60]
fld dword [esp + 0x5c]
fld dword [esp + 0x60]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
jbe 0x546d71
movzx edi, byte [eax + 0x7809c0]
lea edx, [edi + edi*2]
mov ebx, dword [esi + edx*8 + 0x13c]
lea eax, [esi + edx*8]
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*8 + 0x13c]
xor ebx, edx
test bl, 4
mov dword [esp + 0x28], edx
je 0x546bdf
test dl, 4
je 0x546bdb
cmp dword [esp + 0x18], 0
jne 0x546c31
mov ecx, edi
jmp 0x546c31
mov eax, dword [eax + 0x12c]
fld dword [eax + 8]
add eax, 8
fsub dword [ebp + 0x390]
fstp dword [esp + 0x68]
fld dword [eax + 4]
fsub dword [ebp + 0x394]
fstp dword [esp + 0x6c]
fld dword [esp + 0x68]
fld dword [esp + 0x6c]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x546c2f
fstp dword [esp + 0x14]
mov ecx, edi
jmp 0x546c31
fstp st(0)
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jb 0x546ba6
jmp 0x546d6d
cmp dword [esp + 0x34], 0
movzx ecx, byte [0x780980]
je 0x546d71
mov eax, ebx
imul eax, eax, 0x34
lea ebp, [eax + esi]
xor eax, eax
cmp dword [ebp + 0x38c], 5
sete al
mov dword [esp + 0x24], eax
lea eax, [ecx + ecx*2]
mov eax, dword [esi + eax*8 + 0x12c]
fld dword [eax + 8]
add eax, 8
fsub dword [ebp + 0x390]
fstp dword [esp + 0x74]
fld dword [eax + 4]
mov eax, 1
cmp edx, eax
fsub dword [ebp + 0x394]
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x78]
fld dword [esp + 0x74]
fld dword [esp + 0x78]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
jbe 0x546d71
movzx edi, byte [eax + 0x780980]
lea edx, [edi + edi*2]
mov ebx, dword [esi + edx*8 + 0x13c]
lea eax, [esi + edx*8]
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*8 + 0x13c]
xor ebx, edx
test bl, 4
mov dword [esp + 0x28], edx
je 0x546cfa
test dl, 4
je 0x546cf6
cmp dword [esp + 0x24], 0
jne 0x546d58
mov ecx, edi
jmp 0x546d58
mov eax, dword [eax + 0x12c]
fld dword [eax + 8]
add eax, 8
fsub dword [ebp + 0x390]
fstp dword [esp + 0x8c]
fld dword [eax + 4]
fsub dword [ebp + 0x394]
fstp dword [esp + 0x90]
fld dword [esp + 0x8c]
fld dword [esp + 0x90]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x546d56
fstp dword [esp + 0x14]
mov ecx, edi
jmp 0x546d58
fstp st(0)
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
jb 0x546cc1
mov ebx, dword [esp + 0x10]
mov eax, ecx
add byte [eax + 0x7809e0], 1
cmp dword [esp + 0x34], 0
jne 0x546dac
lea eax, [eax + eax*2]
cmp dword [esi + eax*8 + 0x128], 0
lea eax, [esi + eax*8 + 0x128]
je 0x546ff2
mov dword [eax], 0
or dword [eax + 0x14], 1
and dword [eax + 0x14], 0xfffffffd
jmp 0x546ff2
mov ecx, ebx
imul ecx, ecx, 0x34
cmp dword [ecx + esi + 0x384], 0
lea edx, [ecx + esi]
mov dword [esp + 0x18], edx
jne 0x546dee
cmp dword [edx + 0x38c], 4
je 0x546dee
lea ecx, [eax + eax*2]
lea edi, [esi + ecx*8]
mov ebp, 0x100
mov ecx, ebx
shl ebp, cl
test dword [edi + 0x13c], ebp
je 0x546dee
mov ecx, dword [edi + 0x12c]
mov dword [edx + 0x384], ecx
lea eax, [eax + eax*2]
mov ebp, dword [esi + eax*8 + 0x128]
cmp ebp, dword [esp + 0x34]
lea edi, [esi + eax*8]
je 0x546e95
fldz
mov ecx, dword [esi + 0x90]
test ecx, ecx
fstp dword [esp + 0x54]
fild dword [esi + 0x90]
jge 0x546e21
fadd dword [0x6ddeec]
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fmul qword [0x6dd478]
fst qword [esp + 0x28]
call fcn.00651ec0
fmul dword [esp + 0x14]
fstp dword [esp + 0x4c]
fld qword [esp + 0x28]
call fcn.00651d90
fmul dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x380]
cmp ebp, eax
fstp dword [esp + 0x50]
je 0x546e73
mov dword [edi + 0x128], eax
or dword [edi + 0x13c], 1
and dword [edi + 0x13c], 0xfffffffd
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [edi + 0x130], eax
mov dword [edi + 0x134], ecx
mov dword [edi + 0x138], edx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
add eax, 0xffffffff
cmp dword [esp + 0x44], eax
jne 0x546fcd
mov eax, dword [esp + 0x40]
sub eax, 0
je 0x546ecc
sub eax, 1
je 0x546f1c
add ebx, 1
cmp ebx, dword [esi + 0x9c]
mov dword [esp + 0x10], ebx
jne 0x546f5d
jmp 0x546f57
mov edi, dword [esi + 0x9c]
lea ecx, [edx + 0x38c]
add ebx, 1
add ecx, 0x34
cmp ebx, edi
jae 0x546ef2
mov eax, dword [ecx]
test eax, eax
je 0x546ed8
cmp eax, 4
je 0x546ed8
cmp eax, 5
je 0x546ed8
cmp ebx, edi
mov dword [esp + 0x10], ebx
jne 0x546f5d
mov eax, dword [esi + 0x38c]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x10], ebx
je 0x546f5d
cmp eax, 4
je 0x546f5d
cmp eax, 5
je 0x546f5d
mov edx, dword [esi + 0x9c]
mov ecx, ebx
imul ecx, ecx, 0x34
lea ecx, [ecx + esi + 0x38c]
mov edi, edi
add ebx, 1
add ecx, 0x34
cmp ebx, edx
jae 0x546f4a
mov eax, dword [ecx]
test eax, eax
je 0x546f4a
cmp eax, 4
je 0x546f4a
cmp eax, 5
jne 0x546f30
cmp ebx, edx
mov dword [esp + 0x10], ebx
jne 0x546f5d
add dword [esp + 0x40], 1
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x1c]
fld dword [eax + 8]
mov edx, ebx
imul edx, edx, 0x34
fsub dword [edx + esi + 0x390]
fstp dword [esp + 0xa4]
fld dword [eax + 0xc]
fsub dword [edx + esi + 0x394]
add eax, 8
lea ecx, [edx + esi + 0x390]
fstp dword [esp + 0xa8]
fld dword [eax + 8]
fsub dword [ecx + 8]
lea ecx, [esp + 0xa4]
fstp dword [esp + 0xac]
call fcn.0040672b
cmp dword [esp + 0x30], 1
fstp dword [esp + 0x20]
jbe 0x546fc3
fld dword [esp + 0x20]
fsub qword [0x6dd1a0]
fstp dword [esp + 0x20]
mov dword [esp + 0x44], 0
jmp 0x546ff2
fld dword [esp + 0x20]
add dword [esp + 0x44], 1
fadd dword [esp + 0x58]
push ecx
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp]
call fcn.0040ab69
fstp dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x94]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x48], eax
jb 0x546948
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret