Function at 0x506e20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
xor edx, edx
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, edx
push esi
push edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
jne 0x5065a3
mov eax, dword [ebp + 0x18]
mov word [eax + 8], dx
mov word [eax + 0xa], dx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0xc]
fild dword [esi + 0xc]
test eax, eax
jge 0x5065b6
fadd dword [0x5415b8]
fmul dword [esi + 8]
fmul dword [0x54a23c]
fld dword [0x53d7c8]
fdiv dword [ebx + 0x18]
fld st(0)
fmul dword [esi + 0x10]
fmul st(2)
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fmul dword [esi + 0x14]
mov dword [esp + 0x20], ecx
fmul st(1)
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fstp st(0)
mov dword [esp + 0x24], eax
fld dword [0x53d7c0]
fld dword [esi + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x506724
fld dword [esp + 0x18]
mov dword [esp + 0x40], edx
fmul dword [ebx + 0x1c]
fchs
fstp dword [esp + 0xc]
fld dword [esp + 0x1c]
fmul dword [ebx + 0x20]
fchs
fst dword [esp + 0x14]
fld dword [0x53d7c0]
fld dword [esp + 0x18]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5066e7
fld dword [0x53d7c0]
fld dword [esp + 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5066e7
fstp st(0)
sub esp, 8
fld dword [esi + 0x20]
fstp qword [esp]
call fcn.004d43e0
fstp dword [esp + 0x18]
fld dword [esi + 0x20]
fstp qword [esp]
call fcn.004d43d0
fld dword [esi + 0x18]
add esp, 8
fld dword [esi + 0x1c]
fld st(2)
fmul dword [esp + 0x18]
fstp dword [esp + 0x58]
fld dword [esp + 0x10]
fmul dword [esp + 0x1c]
fchs
fstp dword [esp + 0x5c]
fld dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x60]
fld st(2)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x64]
fxch st(1)
fsub dword [esi]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x3c]
fsub dword [esi + 4]
fdiv dword [esp + 0x1c]
fld dword [esp + 0xc]
fsub dword [esp + 0x3c]
fld dword [esp + 0x14]
fsub st(2)
fld st(1)
fmul st(4)
fld st(1)
fmul dword [esp + 0x10]
fsubp st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0xc]
fmulp st(3)
fmul dword [esp + 0x10]
faddp st(2)
faddp st(1)
jmp 0x506707
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
fld dword [esp + 0xc]
mov edi, dword [ebp + 0x1c]
fadd dword [esi]
xor eax, eax
fstp dword [esp + 0xc]
fadd dword [esi + 4]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
jmp 0x506ad5
mov eax, dword [esi + 0x28]
xor ecx, ecx
cmp eax, edx
setne cl
cmp ecx, edx
mov dword [esp + 0x40], ecx
je 0x506915
mov edi, dword [esi + 0x24]
cmp edi, edx
jne 0x506764
xor ecx, ecx
cmp eax, 2
sete cl
xor edx, edx
mov dword [esp + 0x28], 0
mov edi, ecx
test edi, edi
setne dl
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edx
jmp 0x5067a5
xor edx, edx
cmp eax, 2
sete dl
cmp edi, 1
mov dword [esp + 0x2c], edx
je 0x50677e
cmp edi, 2
je 0x50677e
xor edx, edx
jmp 0x506783
mov edx, 1
cmp edi, 3
mov dword [esp + 0x30], edx
je 0x506799
cmp edi, 4
mov dword [esp + 0x28], 0
jne 0x5067a1
mov dword [esp + 0x28], 1
mov edi, dword [esp + 0x2c]
mov eax, dword [ebx + 0x44]
fld dword [ebx + 0x18]
mov ecx, eax
and ecx, 1
and eax, 2
test ecx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
jne 0x5067c5
mov dword [esp + 0x14], ecx
jmp 0x5067da
fld st(0)
fmul dword [ebx + 0x34]
fadd dword [ebx + 0x1c]
fstp dword [esp + 0x4c]
fld st(0)
fmul dword [ebx + 0x3c]
fstp dword [esp + 0x14]
test eax, eax
jne 0x5067e8
fstp st(0)
fld dword [0x53d7c0]
jmp 0x5067f7
fld st(0)
fmul dword [ebx + 0x38]
fadd dword [ebx + 0x20]
fstp dword [esp + 0x50]
fmul dword [ebx + 0x40]
fld dword [0x53d7c0]
fld dword [esp + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x506889
test edi, edi
je 0x506858
test edx, edx
je 0x506858
fld dword [esp + 0x18]
fmul dword [esp + 0x14]
fld dword [0x54a1f0]
fmul st(1)
fadd dword [0x540fe0]
call fcn.004ae0e0
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fmul dword [0x54a238]
fld dword [0x53d7c0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x506885
fdiv st(1)
fmul dword [esp + 0x18]
fstp dword [esp + 0x20]
jmp 0x506887
fld dword [esp + 0x18]
fmul dword [esp + 0x14]
fld dword [0x540fe0]
fadd st(1)
call fcn.004ae0e0
test eax, eax
mov dword [esp + 0x3c], eax
je 0x506887
fild dword [esp + 0x3c]
fdiv st(1)
fmul dword [esp + 0x18]
fstp dword [esp + 0x20]
jmp 0x506887
fstp st(0)
fstp st(0)
fld dword [0x53d7c0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x506913
test edi, edi
je 0x5068e8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5068e8
fmul dword [esp + 0x1c]
fld dword [0x54a1f0]
fmul st(1)
fadd dword [0x540fe0]
call fcn.004ae0e0
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fmul dword [0x54a238]
fld dword [0x53d7c0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x506911
fdiv st(1)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x24]
jmp 0x506913
fmul dword [esp + 0x1c]
fld dword [0x54a234]
fadd st(1)
call fcn.004ae0e0
test eax, eax
mov dword [esp + 0x3c], eax
je 0x506913
fild dword [esp + 0x3c]
fdiv st(1)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x24]
jmp 0x506913
fstp st(0)
fstp st(0)
fld dword [esp + 0x20]
mov eax, dword [esp + 0x20]
fmul dword [ebx + 0x1c]
mov ecx, dword [esp + 0x24]
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x58], eax
fchs
xor eax, eax
fadd dword [esi]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x40]
cmp ecx, eax
fstp dword [esp + 0xc]
fld dword [esp + 0x24]
mov dword [esp + 0x5c], 0
fmul dword [ebx + 0x20]
mov dword [esp + 0x60], 0
fchs
fadd dword [esi + 4]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
fstp dword [esp + 0x14]
je 0x506ad9
cmp dword [esp + 0x44], eax
mov edx, dword [ebp + 0x18]
mov dword [edx + 0xc], 1
je 0x506a26
fld dword [esp + 0x4c]
sub esp, 8
fmul dword [esp + 0x28]
fadd dword [esp + 0x14]
fst dword [esp + 0x44]
fstp qword [esp]
call fcn.004d4610
fsubr dword [esp + 0x44]
add esp, 8
fsubr dword [0x54a230]
fcom dword [0x540fdc]
fnstsw ax
test ah, 0x41
jp 0x5069bc
fadd dword [0x53d7c8]
jmp 0x5069cf
fcom dword [0x540fe0]
fnstsw ax
test ah, 0x41
jne 0x5069cf
fsub dword [0x53d7c8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x506a1b
mov eax, dword [esp + 0x30]
test eax, eax
je 0x506a1b
fcom dword [0x54a22c]
fnstsw ax
test ah, 5
jp 0x5069fe
mov eax, dword [ebp + 0x18]
fadd dword [0x54a238]
mov dword [eax + 0xc], 2
jmp 0x506a1b
fcom dword [0x54a228]
fnstsw ax
test ah, 1
jne 0x506a1b
mov ecx, dword [ebp + 0x18]
fsub dword [0x54a238]
mov dword [ecx + 0xc], 0
fst dword [edi + 0x10]
fadd dword [esp + 0xc]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x506ad9
fld dword [esp + 0x50]
sub esp, 8
fmul dword [esp + 0x2c]
fadd dword [esp + 0x1c]
fst dword [esp + 0x44]
fstp qword [esp]
call fcn.004d4610
fsubr dword [esp + 0x44]
add esp, 8
fsubr dword [0x54a230]
fcom dword [0x540fdc]
fnstsw ax
test ah, 0x41
jp 0x506a6f
fadd dword [0x53d7c8]
jmp 0x506a82
fcom dword [0x540fe0]
fnstsw ax
test ah, 0x41
jne 0x506a82
fsub dword [0x53d7c8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x506ace
mov eax, dword [esp + 0x28]
test eax, eax
je 0x506ace
fcom dword [0x54a22c]
fnstsw ax
test ah, 5
jp 0x506ab1
mov edx, dword [ebp + 0x18]
fadd dword [0x54a238]
mov dword [edx + 0xc], 2
jmp 0x506ace
fcom dword [0x54a228]
fnstsw ax
test ah, 1
jne 0x506ace
mov eax, dword [ebp + 0x18]
fsub dword [0x54a238]
mov dword [eax + 0xc], 0
fst dword [edi + 0x14]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x5c]
fadd dword [esp + 0x58]
fld dword [esp + 0x5c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x506af4
fld dword [esp + 0x5c]
jmp 0x506af6
fld st(0)
fld dword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x506b09
fstp st(0)
fld dword [esp + 0x58]
fld dword [0x53d7c0]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x506b24
fstp st(0)
mov dword [esp + 0x10], 0
jmp 0x506b28
fstp dword [esp + 0x10]
fld dword [esp + 0x5c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x506b3b
fstp st(0)
fld dword [esp + 0x5c]
fld dword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x506b4e
fstp st(0)
fld dword [esp + 0x58]
fld dword [0x53d7c0]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x506b65
fstp st(0)
fld dword [0x53d7c0]
fld dword [esp + 0x10]
mov eax, dword [esp + 0x30]
fcomp st(1)
xor ecx, ecx
cmp eax, ecx
fnstsw ax
jne 0x506bc0
test ah, 5
jp 0x506baa
fsub dword [esp + 0x10]
fadd dword [0x53d7c8]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fistp dword [esp + 0x38]
fld dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
fadd dword [esp + 0xc]
mov dword [esp + 0x34], ecx
fadd dword [0x540fe0]
jmp 0x506bf9
fstp st(0)
mov dword [esp + 0x34], ecx
fld dword [esp + 0x10]
fadd dword [esp + 0xc]
fadd dword [0x540fe0]
jmp 0x506bf9
test ah, 5
jp 0x506be5
fsub dword [esp + 0x10]
fadd dword [0x54a224]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fistp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x34], edx
jmp 0x506beb
fstp st(0)
mov dword [esp + 0x34], ecx
fld dword [esp + 0x10]
fadd dword [esp + 0xc]
fadd dword [0x54a228]
sub esp, 8
fstp qword [esp]
call fcn.004d4610
fstp dword [esp + 0x44]
add esp, 8
fld dword [esp + 0xc]
fsub dword [esp + 0x3c]
fstp dword [esp + 0xc]
fld dword [esp + 0x64]
fadd dword [esp + 0x60]
fld dword [esp + 0x64]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x506c32
fld dword [esp + 0x64]
jmp 0x506c34
fld st(0)
fld dword [esp + 0x60]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x506c47
fstp st(0)
fld dword [esp + 0x60]
fld dword [0x53d7c0]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x506c62
fstp st(0)
mov dword [esp + 0x10], 0
jmp 0x506c66
fstp dword [esp + 0x10]
fld dword [esp + 0x64]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x506c79
fstp st(0)
fld dword [esp + 0x64]
fld dword [esp + 0x60]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x506c8c
fstp st(0)
fld dword [esp + 0x60]
fld dword [0x53d7c0]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x506ca3
fstp st(0)
fld dword [0x53d7c0]
fld dword [esp + 0x10]
mov eax, dword [esp + 0x28]
fcomp st(1)
xor ecx, ecx
cmp eax, ecx
fnstsw ax
jne 0x506cfe
test ah, 5
jp 0x506ce8
fsub dword [esp + 0x10]
fadd dword [0x53d7c8]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fistp dword [esp + 0x54]
fld dword [esp + 0x10]
fadd dword [esp + 0x14]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x38], eax
fadd dword [0x540fe0]
jmp 0x506d33
fstp st(0)
mov dword [esp + 0x38], ecx
fld dword [esp + 0x10]
fadd dword [esp + 0x14]
fadd dword [0x540fe0]
jmp 0x506d33
test ah, 5
jp 0x506d1f
fsub dword [esp + 0x10]
fadd dword [0x54a224]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fistp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
jmp 0x506d21
fstp st(0)
fld dword [esp + 0x10]
mov dword [esp + 0x38], ecx
fadd dword [esp + 0x14]
fadd dword [0x54a228]
sub esp, 8
fstp qword [esp]
call fcn.004d4610
mov eax, dword [ebp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
mov dx, word [esp + 0x3c]
fsub dword [esp + 0x18]
mov cx, word [esp + 0x40]
add esp, 8
mov word [eax + 8], dx
fstp dword [esp + 0x14]
mov word [eax + 0xa], cx
fld dword [esp + 0x3c]
fistp dword [esp + 0x54]
mov edx, dword [esp + 0x54]
mov dword [eax], edx
fld dword [esp + 0x10]
fistp dword [esp + 0x54]
fld dword [esp + 0x5c]
fmul dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
fld dword [esp + 0x64]
mov dword [eax + 4], ecx
fmul dword [esp + 0xc]
fsubp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0xc]
fld dword [esp + 0x58]
fmul dword [esp + 0x14]
fsubp st(1)
fld dword [esp + 0x64]
fmul dword [esp + 0x58]
fld dword [esp + 0x60]
fmul dword [esp + 0x5c]
fsubp st(1)
fld dword [0x53d7c0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x506dd4
fstp st(0)
fld dword [0x53d7c8]
jmp 0x506dda
fdivr dword [0x53d7c8]
mov ecx, dword [ebp + 0x14]
fld dword [esp + 0x64]
fmul st(1)
xor edx, edx
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edx
fstp dword [ecx]
mov dword [ecx + 0x20], 0x3f800000
fld dword [esp + 0x5c]
fmul st(1)
fchs
fstp dword [ecx + 4]
fld st(0)
fmul st(3)
fstp dword [ecx + 8]
fld dword [esp + 0x60]
fmul st(1)
fchs
fstp dword [ecx + 0xc]
fld dword [esp + 0x58]
fmul st(1)
fstp dword [ecx + 0x10]
fmul st(1)
fstp dword [ecx + 0x14]
fstp st(0)
fstp st(0)
fld dword [esp + 0x24]
fadd dword [esp + 0x20]
fld dword [0x53d7c0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x506e44
fdivr dword [0x541064]
jmp 0x506e4c
fstp st(0)
fld dword [0x53d7c0]
fst dword [ecx + 0x34]
fld st(0)
fmul dword [esi + 0x2c]
fstp dword [ecx + 0x28]
fmul dword [esi + 0x30]
fstp dword [ecx + 0x2c]
mov eax, dword [esi + 0x34]
fld dword [esp + 0x18]
mov dword [ecx + 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [ecx + 0x24], eax
fmul dword [ebx + 0x14]
mov eax, dword [ebp + 0x20]
cmp eax, edx
fstp dword [edi]
fld dword [esp + 0x1c]
fmul dword [ebx + 0x14]
fstp dword [edi + 4]
fld dword [esp + 0x20]
fmul dword [ebx + 0x14]
fstp dword [edi + 8]
fld dword [esp + 0x24]
fmul dword [ebx + 0x14]
fstp dword [edi + 0xc]
je 0x506f14
mov esi, dword [esp + 0x40]
xor ecx, ecx
cmp esi, edx
je 0x506ea6
mov ecx, 1
cmp dword [esp + 0x30], edx
je 0x506eaf
or ecx, 2
cmp dword [esp + 0x28], edx
je 0x506eb8
or ecx, 4
cmp dword [esp + 0x2c], edx
je 0x506ec1
or ecx, 8
cmp dword [esp + 0x44], edx
je 0x506eca
or ecx, 0x10
cmp dword [esp + 0x48], edx
je 0x506ed3
or ecx, 0x20
mov edx, dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0x1c]
mov dword [eax + 0xc], ecx
mov edx, dword [ebx + 0x20]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov ecx, dword [edi]
mov dword [eax + 0x1c], ecx
mov edx, dword [edi + 4]
mov dword [eax + 0x20], edx
mov ecx, dword [edi + 8]
mov dword [eax + 0x24], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0x28], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret