Function at 0x10051730
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
push dword [esp + 0x54]
mov edi, dword [eax + 4]
xor ebp, ebp
push eax
xor ebx, ebx
call fcn.10051570
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x58]
mov dword [eax], ebx
test esi, esi
js 0x10051fd3
movzx ecx, byte [esi + edi]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edi + 1]
add cx, ax
movzx eax, cx
test ax, ax
jle 0x10051b80
cwde
lea edx, [edi + 0xa]
add edx, esi
mov dword [esp + 0x14], ebp
xor bl, bl
mov dword [esp + 0x40], ebp
mov dword [esp + 0x38], edx
lea ecx, [esi + eax*2]
add eax, eax
mov dword [esp + 0x50], eax
movzx eax, byte [ecx + edi + 0xa]
movzx ecx, byte [ecx + edi + 0xb]
shl eax, 8
add eax, edi
mov edi, dword [esp + 0x50]
add ecx, eax
add ecx, esi
movzx eax, byte [edi + edx - 1]
lea esi, [edi + 0xc]
add esi, ecx
movzx ecx, byte [edi + edx - 2]
shl ecx, 8
inc ecx
add eax, ecx
mov dword [esp + 0x2c], eax
lea ecx, [edi + eax]
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
call fcn.1003f1a0
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x10051fd3
mov edx, dword [esp + 0x2c]
lea eax, [edi*8]
sub eax, edi
mov dword [esp + 0x44], 0
add eax, eax
xor cl, cl
mov dword [esp + 0x50], eax
test edx, edx
je 0x10051b3e
add eax, 0xc
add eax, ebp
nop
mov edi, esi
test cl, cl
jne 0x10051835
mov bl, byte [esi]
inc esi
test bl, 8
je 0x10051837
mov cl, byte [esi]
lea esi, [edi + 2]
jmp 0x10051837
dec cl
mov byte [eax], bl
add eax, 0xe
sub edx, 1
jne 0x10051820
mov edi, dword [esp + 0x50]
add edi, ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x50], edi
mov ebx, edi
mov edi, 0x100
mov cl, byte [ebx + 0xc]
and cl, 0x10
test byte [ebx + 0xc], 2
je 0x10051872
mov al, byte [esi]
inc esi
movzx eax, al
test cl, cl
jne 0x1005186e
neg eax
add edx, eax
jmp 0x10051891
test cl, cl
jne 0x10051891
movzx ecx, byte [esi]
movsx eax, di
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + 1]
add cx, ax
movsx eax, cx
add edx, eax
add esi, 2
mov word [ebx], dx
add ebx, 0xe
sub ebp, 1
jne 0x10051856
mov ebx, dword [esp + 0x50]
xor edx, edx
mov edi, dword [esp + 0x2c]
add ebx, 2
mov ebp, dword [esp + 0x18]
lea ecx, [ecx]
mov cl, byte [ebx + 0xa]
and cl, 0x20
test byte [ebx + 0xa], 4
je 0x100518cc
mov al, byte [esi]
inc esi
movzx eax, al
test cl, cl
jne 0x100518c8
neg eax
add edx, eax
jmp 0x100518ee
test cl, cl
jne 0x100518ee
movzx ecx, byte [esi]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + 1]
add cx, ax
movsx eax, cx
add edx, eax
add esi, 2
mov word [ebx], dx
add ebx, 0xe
sub edi, 1
jne 0x100518b0
mov edi, dword [esp + 0x50]
xor edx, edx
xor esi, esi
mov dword [esp + 0x30], edx
xor ebx, ebx
mov dword [esp + 0x34], edx
xor eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
lea esp, [esp]
mov al, byte [edi + 0xc]
mov byte [esp + 0x50], al
movzx eax, word [edi]
movsx ecx, ax
movzx eax, word [edi + 2]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x44], eax
jne 0x10051a13
test eax, eax
je 0x10051979
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esp + 0x40]
push esi
push ebx
push dword [esp + 0x58]
push dword [esp + 0x30]
push edx
push ebp
call fcn.100524c0
mov ecx, dword [esp + 0x64]
mov edx, eax
mov eax, dword [esp + 0x48]
add esp, 0x28
movzx ebx, byte [esp + 0x50]
not ebx
and ebx, 1
mov dword [esp + 0x40], ebx
je 0x100519c8
test byte [edi + 0x1a], 1
mov esi, dword [esp + 0x24]
movsx ebx, si
movsx esi, word [edi + 0x10]
mov dword [esp + 0x30], ebx
lea ebx, [edi + 0xe]
mov dword [esp + 0x50], ebx
movsx ebx, word [ebx]
mov dword [esp + 0x34], ecx
jne 0x100519bd
add ebx, ecx
mov ecx, dword [esp + 0x24]
movsx eax, cx
add esi, eax
sar ebx, 1
sar esi, 1
jmp 0x100519d1
mov edi, dword [esp + 0x50]
inc eax
mov dword [esp + 0x20], eax
jmp 0x100519d1
mov ebx, ecx
mov ecx, dword [esp + 0x24]
movsx esi, cx
lea eax, [edx*8]
xor ecx, ecx
sub eax, edx
mov dword [esp + 0x14], ecx
inc edx
mov dword [ebp + eax*2 + 4], ecx
mov byte [ebp + eax*2 + 0xc], 1
mov word [ebp + eax*2], bx
mov word [ebp + eax*2 + 2], si
mov eax, dword [esp + 0x38]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
inc ecx
shl eax, 8
add eax, ecx
add dword [esp + 0x38], 2
mov dword [esp + 0x44], eax
jmp 0x10051b1e
test byte [esp + 0x50], 1
jne 0x10051a8f
cmp dword [esp + 0x14], 0
je 0x10051a73
mov eax, dword [esp + 0x3c]
lea ecx, [edx*8]
add eax, dword [esp + 0x28]
sub ecx, edx
sar eax, 1
inc edx
mov dword [esp + 0x50], ecx
mov byte [ebp + ecx*2 + 0xc], 3
mov ebp, dword [esp + 0x18]
mov word [ebp + ecx*2], ax
mov ecx, dword [esp + 0x24]
movsx eax, cx
mov ecx, dword [esp + 0x50]
add eax, dword [esp + 0x1c]
sar eax, 1
mov word [ebp + ecx*2 + 2], ax
mov eax, dword [esp + 0x28]
mov word [ebp + ecx*2 + 4], ax
mov eax, dword [esp + 0x1c]
mov word [ebp + ecx*2 + 6], ax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
movsx ecx, ax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 1
jmp 0x10051b22
movzx eax, word [edi]
lea ecx, [edx*8]
mov dword [esp + 0x48], eax
sub ecx, edx
mov eax, dword [esp + 0x24]
inc edx
movzx ebp, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x10051ad7
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
movzx ebp, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x18]
jmp 0x10051ae7
mov dword [esp + 0x3c], 0
mov dword [esp + 0x50], 0
test eax, eax
mov dword [esp + 0x14], 0
setne al
add al, 2
mov byte [ebp + ecx*2 + 0xc], al
mov eax, dword [esp + 0x48]
mov word [ebp + ecx*2], ax
mov eax, dword [esp + 0x24]
mov word [ebp + ecx*2 + 2], ax
mov eax, dword [esp + 0x50]
mov word [ebp + ecx*2 + 4], ax
mov eax, dword [esp + 0x3c]
mov word [ebp + ecx*2 + 6], ax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add edi, 0xe
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x2c]
jl 0x10051920
mov eax, dword [esp + 0x28]
jmp 0x10051b50
xor edx, edx
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x30], edx
xor esi, esi
mov dword [esp + 0x34], edx
xor ebx, ebx
push ecx
push eax
push dword [esp + 0x38]
push dword [esp + 0x40]
push esi
push ebx
push dword [esp + 0x58]
push dword [esp + 0x30]
push edx
push ebp
call fcn.100524c0
add esp, 0x28
mov ebx, eax
mov eax, dword [esp + 0x58]
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x3c
ret
cmp ax, 0xffff
jne 0x10051b70
fld1
add edi, 0xa
fldz
xor ebx, ebx
fld dword [0x101af6b0]
add edi, esi
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebp
jmp 0x10051ba7
fxch st(2)
fxch st(1)
mov al, byte [edi + 2]
fld st(2)
movzx edx, byte [edi + 1]
fst dword [esp + 0x34]
fld st(2)
mov byte [esp + 0x12], al
mov al, byte [edi + 3]
add edi, 4
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], edx
mov byte [esp + 0x13], al
fst dword [esp + 0x30]
fld st(3)
fst dword [esp + 0x2c]
fxch st(5)
fst dword [esp + 0x24]
fld st(4)
fstp dword [esp + 0x40]
fld st(4)
fstp dword [esp + 0x3c]
test dl, 2
je 0x10051c67
lea esi, [edi + 1]
test dl, 1
je 0x10051c42
mov al, byte [edi + 2]
lea edx, [edi + 3]
mov bl, byte [edi]
add edi, 4
movzx ecx, al
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx]
mov edx, dword [esp + 0x14]
add cx, ax
movsx eax, cx
mov dword [esp + 0x44], eax
mov eax, 0x100
movzx ecx, bl
mov ebx, dword [esp + 0x20]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi]
add cx, ax
movsx eax, cx
jmp 0x10051c53
mov cl, byte [edi]
mov edi, esi
mov al, byte [edi]
inc edi
movsx eax, al
mov dword [esp + 0x44], eax
movsx eax, cl
fild dword [esp + 0x44]
mov dword [esp + 0x40], eax
fstp dword [esp + 0x3c]
fild dword [esp + 0x40]
fstp dword [esp + 0x40]
test dl, 8
je 0x10051cb7
movzx ecx, byte [edi]
fstp st(2)
mov eax, 0x100
movsx ecx, cx
cwde
fstp st(0)
imul ecx, eax
fstp st(3)
movzx eax, byte [edi + 1]
fstp st(2)
add cx, ax
add edi, 2
movsx eax, cx
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fmulp st(2)
fxch st(1)
fst dword [esp + 0x34]
fld st(0)
fst dword [esp + 0x24]
fld st(2)
fst dword [esp + 0x2c]
fxch st(3)
fst dword [esp + 0x30]
jmp 0x10051de5
test dl, 0x40
je 0x10051d2e
movzx ecx, byte [edi]
fstp st(2)
movsx ecx, cx
fstp st(0)
mov edx, 0x100
fstp st(3)
movsx eax, dx
fstp st(2)
imul ecx, eax
movzx eax, byte [edi + 1]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 2]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
movsx eax, dx
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + 3]
fmul st(2)
add cx, ax
add edi, 4
movsx eax, cx
fst dword [esp + 0x34]
fld st(1)
mov dword [esp + 0x48], eax
fst dword [esp + 0x2c]
fxch st(2)
fst dword [esp + 0x30]
fild dword [esp + 0x48]
fmulp st(4)
fxch st(3)
fst dword [esp + 0x24]
fxch st(2)
fxch st(3)
fxch st(1)
jmp 0x10051de1
fstp st(4)
test dl, dl
jns 0x10051ddf
movzx ecx, byte [edi]
fstp st(1)
movsx ecx, cx
mov edx, 0x100
fstp st(0)
movsx eax, dx
imul ecx, eax
fstp st(2)
movzx eax, byte [edi + 1]
fstp st(0)
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 2]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
movsx ecx, cx
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 3]
fmul st(1)
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 4]
mov dword [esp + 0x48], eax
fst dword [esp + 0x34]
fild dword [esp + 0x48]
movsx ecx, cx
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 5]
fmul st(2)
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 6]
fst dword [esp + 0x30]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
movsx eax, dx
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + 7]
fmul st(3)
add cx, ax
add edi, 8
movsx eax, cx
fst dword [esp + 0x2c]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fmulp st(4)
fxch st(3)
fst dword [esp + 0x24]
jmp 0x10051de3
fstp st(2)
fxch st(2)
fxch st(1)
fmul st(0), st(0)
lea edx, [esp + 0x28]
fld st(2)
movzx ecx, byte [esp + 0x12]
fmulp st(3)
movzx eax, byte [esp + 0x13]
shl ecx, 8
add ecx, eax
mov eax, dword [esp + 0x50]
push edx
faddp st(2)
fxch st(1)
push ecx
cmp dword [eax + 0x3c], 0
push eax
fsqrt
fstp dword [esp + 0x50]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fsqrt
fstp dword [esp + 0x28]
jne 0x10051e2a
call fcn.10051730
jmp 0x10051e2f
call fcn.10051620
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jle 0x10051f9b
fld dword [esp + 0x34]
xor ebx, ebx
fld dword [esp + 0x30]
mov ebp, eax
fld dword [esp + 0x2c]
fld dword [esp + 0x24]
mov esi, dword [esp + 0x28]
movsx eax, word [ebx + esi + 2]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
movsx eax, word [ebx + esi]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fld st(0)
fmul st(6)
fld st(2)
fmul st(5)
faddp st(1)
fadd dword [esp + 0x40]
fmul dword [esp + 0x44]
call fcn.10162460
fmul st(4)
fxch st(1)
fmul st(2)
mov word [ebx + esi], ax
faddp st(1)
fadd dword [esp + 0x3c]
fmul dword [esp + 0x1c]
call fcn.10162460
mov word [ebx + esi + 2], ax
movsx eax, word [ebx + esi + 6]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
movsx eax, word [ebx + esi + 4]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fld st(0)
fmul st(6)
fld st(2)
fmul st(5)
faddp st(1)
fadd dword [esp + 0x40]
fmul dword [esp + 0x44]
call fcn.10162460
fmul st(4)
fxch st(1)
fmul st(2)
mov word [ebx + esi + 4], ax
faddp st(1)
fadd dword [esp + 0x3c]
fmul dword [esp + 0x1c]
call fcn.10162460
mov word [ebx + esi + 6], ax
lea ebx, [ebx + 0xe]
sub ebp, 1
jne 0x10051e52
mov ecx, dword [esp + 0x38]
fstp st(3)
mov ebx, dword [esp + 0x20]
fstp st(1)
mov ebp, dword [esp + 0x18]
add ecx, ebx
fstp st(0)
mov dword [esp + 0x44], ecx
fstp st(0)
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
call fcn.1003f1a0
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
je 0x10051fb5
lea esi, [ebx*8]
sub esi, ebx
add esi, esi
test ebx, ebx
jle 0x10051f50
push esi
push ebp
push eax
call fcn.10163cd0
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x48]
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
push dword [esp + 0x2c]
lea eax, [esi + ebx]
push eax
call fcn.10163cd0
add esp, 0xc
test ebp, ebp
je 0x10051f81
push ebp
call fcn.1003f1d0
add esp, 4
push dword [esp + 0x28]
mov ebp, ebx
mov dword [esp + 0x1c], ebp
call fcn.1003f1d0
mov ebx, dword [esp + 0x48]
add esp, 4
mov dword [esp + 0x20], ebx
test byte [esp + 0x14], 0x20
je 0x10051b70
fldz
fld dword [0x101af6b0]
fld1
jmp 0x10051ba3
test ebp, ebp
je 0x10051fc2
push ebp
call fcn.1003f1d0
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10051fd3
push eax
call fcn.1003f1d0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret