Function at 0x1006db80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], ebx
call fcn.1006da80
mov edi, eax
cmp edi, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
jl 0x1006e3b6
lea edx, [edi + esi]
mov ecx, edx
call fcn.1006d0e0
movzx eax, ax
cmp ax, bx
jle 0x1006dfb7
mov byte [esp + 0xf], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ebx
lea ebx, [edx + 0xa]
movsx edx, ax
lea ecx, [edi + edx*2 + 0xa]
add ecx, esi
mov dword [esp + 0x54], ebx
call fcn.1006d0d0
movzx ecx, ax
add ecx, edi
lea edi, [ecx + edx*2 + 0xc]
lea ecx, [ebx + edx*2 - 2]
add edi, esi
call fcn.1006d0d0
movzx ebx, ax
add ebx, 1
lea esi, [ebx + edx*2]
lea edx, [esi*8]
sub edx, esi
add edx, edx
push edx
mov dword [esp + 0x68], ebx
call fcn.1003b5f0
mov ecx, eax
xor eax, eax
add esp, 4
cmp ecx, eax
mov dword [esp + 0x10], ecx
je 0x1006e3b6
sub esi, ebx
xor dl, dl
cmp ebx, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], esi
jle 0x1006dd64
lea eax, [esi*8]
sub eax, esi
lea esi, [ecx + eax*2 + 0xc]
mov eax, ebx
nop
test dl, dl
jne 0x1006dc69
mov cl, byte [edi]
add edi, 1
test cl, 8
mov byte [esp + 0xf], cl
je 0x1006dc70
mov dl, byte [edi]
add edi, 1
jmp 0x1006dc70
mov cl, byte [esp + 0xf]
add dl, 0xff
mov byte [esi], cl
add esi, 0xe
sub eax, 1
jne 0x1006dc50
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ebx, eax
jle 0x1006dd64
lea edx, [esi*8]
sub edx, esi
lea esi, [ecx + edx*2]
mov dword [esp + 0x4c], ebx
lea esp, [esp]
mov cl, byte [esi + 0xc]
test cl, 2
je 0x1006dcc0
movzx dx, byte [edi]
movzx edx, dx
add edi, 1
test cl, 0x10
movsx ecx, dx
jne 0x1006dcbc
neg ecx
add eax, ecx
jmp 0x1006dcdd
test cl, 0x10
jne 0x1006dcdd
movzx cx, byte [edi]
movzx dx, byte [edi + 1]
shl cx, 8
add cx, dx
movsx ecx, cx
add eax, ecx
add edi, 2
mov word [esi], ax
add esi, 0xe
sub dword [esp + 0x4c], 1
jne 0x1006dca0
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ebx, eax
jle 0x1006dd64
lea edx, [esi*8]
sub edx, esi
lea esi, [ecx + edx*2 + 2]
mov dword [esp + 0x4c], ebx
lea esp, [esp]
mov cl, byte [esi + 0xa]
test cl, 4
je 0x1006dd30
movzx dx, byte [edi]
movzx edx, dx
add edi, 1
test cl, 0x20
movsx ecx, dx
jne 0x1006dd2c
neg ecx
add eax, ecx
jmp 0x1006dd4d
test cl, 0x20
jne 0x1006dd4d
movzx cx, byte [edi]
movzx dx, byte [edi + 1]
shl cx, 8
add cx, dx
movsx ecx, cx
add eax, ecx
add edi, 2
mov word [esi], ax
add esi, 0xe
sub dword [esp + 0x4c], 1
jne 0x1006dd10
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
xor eax, eax
xor edx, edx
xor edi, edi
cmp ebx, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edx
jle 0x1006df6d
mov eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
lea eax, [esi*8]
sub eax, esi
lea eax, [ecx + eax*2]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x50], edx
movsx ebx, word [eax + 2]
mov cl, byte [eax + 0xc]
movsx esi, word [eax]
mov byte [esp + 0xf], cl
mov dword [esp + 0x58], ebx
jne 0x1006deaa
test edx, edx
je 0x1006de05
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x28]
call fcn.1006daf0
movzx ecx, byte [esp + 0x27]
mov ebx, dword [esp + 0x70]
mov edi, eax
mov eax, dword [esp + 0x38]
add esp, 0x18
not ecx
and ecx, 1
mov dword [esp + 0x40], ecx
je 0x1006de4e
test byte [eax + 0x1a], 1
movsx ecx, word [eax + 0xe]
movsx edx, word [eax + 0x10]
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], ebx
jne 0x1006de38
add ecx, esi
sar ecx, 1
add edx, ebx
sar edx, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x1006de5e
add dword [esp + 0x30], 1
add eax, 0xe
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
jmp 0x1006de56
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push 0
push 0
lea eax, [edi*8]
push edx
sub eax, edi
push ecx
lea eax, [esi + eax*2]
mov cl, 1
call fcn.1006da50
mov edx, dword [esp + 0x64]
add esp, 0x10
mov ecx, edx
add edi, 1
mov dword [esp + 0x1c], 0
call fcn.1006d0d0
movzx eax, ax
add eax, 1
add edx, 2
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jmp 0x1006df4d
test cl, 1
jne 0x1006defd
cmp dword [esp + 0x1c], 0
je 0x1006deeb
mov edx, dword [esp + 0x10]
lea ecx, [edi*8]
sub ecx, edi
lea eax, [edx + ecx*2]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push edx
push ecx
add edx, ebx
add ecx, esi
sar edx, 1
sar ecx, 1
push edx
push ecx
mov cl, 3
call fcn.1006da50
mov eax, dword [esp + 0x30]
add esp, 0x10
add edi, 1
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], 1
jmp 0x1006df51
cmp dword [esp + 0x1c], 0
je 0x1006df22
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
lea eax, [edi*8]
sub eax, edi
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x2c]
push edx
push ecx
mov cl, 3
jmp 0x1006df38
mov eax, dword [esp + 0x10]
lea edx, [edi*8]
sub edx, edi
push 0
lea eax, [eax + edx*2]
push 0
mov cl, 2
push ebx
push esi
call fcn.1006da50
add esp, 0x10
add edi, 1
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
add edx, 1
add eax, 0xe
cmp edx, dword [esp + 0x64]
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], eax
jl 0x1006dda4
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x28]
call fcn.1006daf0
add esp, 0x18
mov dword [esp + 0x28], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0xffff
jne 0x1006dfa3
fld1
lea esi, [edx + 0xa]
fldz
mov dword [esp + 0x28], ebx
fld qword [0x101a55c0]
mov dword [esp + 0x10], ebx
jmp 0x1006dfe2
fld qword [0x101a55c0]
xor ebx, ebx
fldz
fld1
fxch st(2)
fxch st(2)
mov ecx, esi
fst dword [esp + 0x68]
mov dword [esp + 0x2c], ebx
fstp dword [esp + 0x74]
fst dword [esp + 0x6c]
fst dword [esp + 0x70]
fst dword [esp + 0x78]
fst dword [esp + 0x7c]
call fcn.1006d0e0
movzx ebx, ax
add esi, 2
mov ecx, esi
mov dword [esp + 0x4c], ebx
call fcn.1006d0e0
add esi, 2
test bl, 2
movzx edi, ax
je 0x1006e07d
test bl, 1
je 0x1006e058
mov ecx, esi
call fcn.1006d0e0
movsx eax, ax
mov dword [esp + 0x64], eax
add esi, 2
mov ecx, esi
fild dword [esp + 0x64]
fstp dword [esp + 0x78]
call fcn.1006d0e0
movsx ecx, ax
mov dword [esp + 0x64], ecx
add esi, 2
fild dword [esp + 0x64]
jmp 0x1006e079
movsx edx, byte [esi]
movsx eax, byte [esi + 1]
add esi, 1
mov dword [esp + 0x64], edx
add esi, 1
fild dword [esp + 0x64]
mov dword [esp + 0x64], eax
fstp dword [esp + 0x78]
fild dword [esp + 0x64]
fstp dword [esp + 0x7c]
test bl, 8
je 0x1006e0b4
mov ecx, esi
call fcn.1006d0e0
movsx ecx, ax
mov dword [esp + 0x64], ecx
add esi, 2
fild dword [esp + 0x64]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fstp dword [esp + 0x68]
fst dword [esp + 0x70]
fstp dword [esp + 0x6c]
jmp 0x1006e16f
test bl, 0x40
je 0x1006e0f9
mov ecx, esi
call fcn.1006d0e0
movsx edx, ax
mov dword [esp + 0x64], edx
add esi, 2
mov ecx, esi
fild dword [esp + 0x64]
fmul st(2)
fstp dword [esp + 0x68]
fst dword [esp + 0x70]
fstp dword [esp + 0x6c]
call fcn.1006d0e0
movsx eax, ax
mov dword [esp + 0x64], eax
add esi, 2
fild dword [esp + 0x64]
fmulp st(1)
fstp dword [esp + 0x74]
jmp 0x1006e16f
test bl, bl
fstp st(0)
jns 0x1006e16d
mov ecx, esi
call fcn.1006d0e0
movsx ecx, ax
mov dword [esp + 0x64], ecx
add esi, 2
mov ecx, esi
fild dword [esp + 0x64]
fmul st(1)
fstp dword [esp + 0x68]
call fcn.1006d0e0
movsx edx, ax
mov dword [esp + 0x64], edx
add esi, 2
mov ecx, esi
fild dword [esp + 0x64]
fmul st(1)
fstp dword [esp + 0x6c]
call fcn.1006d0e0
movsx eax, ax
mov dword [esp + 0x64], eax
add esi, 2
mov ecx, esi
fild dword [esp + 0x64]
fmul st(1)
fstp dword [esp + 0x70]
call fcn.1006d0e0
movsx ecx, ax
mov dword [esp + 0x64], ecx
add esi, 2
fild dword [esp + 0x64]
fmulp st(1)
fstp dword [esp + 0x74]
jmp 0x1006e16f
fstp st(0)
fld dword [esp + 0x6c]
fst qword [esp + 0x30]
fld dword [esp + 0x68]
fst qword [esp + 0x20]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
call fcn.101144a0
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fstp dword [esp + 0x58]
fld dword [esp + 0x74]
fst qword [esp + 0x38]
fld dword [esp + 0x70]
fst qword [esp + 0x40]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
call fcn.101144a0
fstp dword [esp + 0x64]
mov ecx, dword [ebp + 8]
fld dword [esp + 0x64]
lea edx, [esp + 0x2c]
fstp dword [esp + 0x64]
movzx eax, di
push edx
push eax
push ecx
call fcn.1006f490
add esp, 0xc
test eax, eax
mov dword [esp + 0x50], eax
jle 0x1006e377
fld dword [esp + 0x78]
xor ebx, ebx
fld dword [esp + 0x58]
mov dword [esp + 0x54], eax
fld dword [esp + 0x7c]
fld dword [esp + 0x64]
fstp qword [esp + 0x58]
fld qword [esp + 0x20]
mov edx, dword [esp + 0x2c]
movzx ecx, word [ebx + edx + 2]
movzx eax, word [ebx + edx]
lea edi, [ebx + edx]
movsx ecx, cx
mov dword [esp + 0x64], ecx
movsx edx, ax
fild dword [esp + 0x64]
mov dword [esp + 0x64], edx
fild dword [esp + 0x64]
fld st(1)
fmul qword [esp + 0x40]
fld st(1)
fmul st(4)
faddp st(1)
fadd st(6)
fmul st(5)
call fcn.10114560
fxch st(1)
fmul qword [esp + 0x38]
mov word [edi], ax
fxch st(1)
fmul qword [esp + 0x30]
faddp st(1)
fadd st(2)
fmul qword [esp + 0x58]
call fcn.10114560
movzx ecx, word [edi + 6]
mov word [edi + 2], ax
movzx eax, word [edi + 4]
movsx ecx, cx
mov dword [esp + 0x64], ecx
movsx edx, ax
fild dword [esp + 0x64]
mov dword [esp + 0x64], edx
fild dword [esp + 0x64]
fld st(1)
fmul qword [esp + 0x40]
fld st(1)
fmul st(4)
faddp st(1)
fadd st(6)
fmul st(5)
call fcn.10114560
fxch st(1)
fmul qword [esp + 0x38]
mov word [edi + 4], ax
fxch st(1)
fmul qword [esp + 0x30]
faddp st(1)
fadd st(2)
fmul qword [esp + 0x58]
call fcn.10114560
add ebx, 0xe
sub dword [esp + 0x54], 1
mov word [edi + 6], ax
jne 0x1006e210
mov edi, dword [esp + 0x28]
fstp st(3)
mov eax, dword [esp + 0x50]
fstp st(1)
add eax, edi
fstp st(0)
lea ecx, [eax*8]
fstp st(0)
sub ecx, eax
add ecx, ecx
push ecx
mov dword [esp + 0x68], eax
call fcn.1003b5f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1006e394
test edi, edi
jle 0x1006e31f
mov eax, dword [esp + 0x10]
lea edx, [edi*8]
sub edx, edi
add edx, edx
push edx
push eax
push ebx
call fcn.10114cf0
add esp, 0xc
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
push ecx
lea eax, [edi*8]
sub eax, edi
push edx
lea ecx, [ebx + eax*2]
push ecx
call fcn.10114cf0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x1006e35a
push eax
call fcn.1003b620
add esp, 4
mov edx, dword [esp + 0x2c]
push edx
mov dword [esp + 0x14], ebx
call fcn.1003b620
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x50]
add esp, 4
mov dword [esp + 0x28], eax
test bl, 0x20
jne 0x1006dfd4
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1006e3a5
push eax
call fcn.1003b620
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1006e3b6
push eax
call fcn.1003b620
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret