Function at 0x40fdf0
Capabilities:
Enumerate pe sections

Disassembly:
test dword [0x87ed4c], 0xfffff000
jne 0x40fe20
test dword [0x87ed4c], 0xffffffff
jne 0x4101b0
call fcn.007663a0
jmp fcn.0040fdf0
sub esp, 0x64
cmp dword [edx], 0
je 0x41009c
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov ebx, dword [edx]
mov edi, dword [edx + 0xc]
mov ebp, dword [ebx + 0x18]
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x18]
movzx eax, byte [ebp + 4]
mov dword [esp + 0x44], ebx
mov ebx, dword [edx + 8]
movzx edx, byte [ebp + 5]
mov dword [esp + 0x4c], ebp
shl eax, 0x18
shl edx, 0x10
add eax, edx
movzx edx, byte [ebp + 6]
mov dword [esp + 0x50], ecx
movzx ecx, byte [ebp + 7]
mov dword [esp + 0x5c], ebx
shl edx, 8
xor esi, esi
add edx, ecx
lea ecx, [esi + esi]
mov dword [esp + 0x58], edi
movzx edi, byte [ebp + 9]
add eax, edx
movzx edx, byte [ebp + 8]
shl edx, 0x18
shl edi, 0x10
add edx, edi
movzx edi, byte [ebp + 0xa]
movzx ebp, byte [ebp + 0xb]
adc esi, 0
shl edi, 8
add edi, ebp
add edx, edi
adc esi, 0
add ecx, edx
add eax, esi
mov esi, dword [esp + 0x50]
sub eax, dword [esp + 0x58]
sub ecx, ebx
or ecx, eax
mov eax, dword [esp + 0x4c]
je 0x4101a4
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], esi
add ebp, dword [esp + 0x50]
movzx ecx, byte [ebp + eax + 4]
movzx ebx, byte [ebp + eax + 5]
movzx edx, byte [ebp + eax + 6]
movzx edi, byte [ebp + eax + 7]
inc dword [esp + 0x54]
mov dword [esp + 0x60], ebp
shl ecx, 0x18
shl ebx, 0x10
add ecx, ebx
xor esi, esi
shl edx, 8
add edx, edi
movzx edi, byte [ebp + eax + 9]
lea ebx, [esi + esi]
add ecx, edx
movzx edx, byte [ebp + eax + 8]
shl edx, 0x18
shl edi, 0x10
add edx, edi
movzx edi, byte [ebp + eax + 0xa]
movzx ebp, byte [ebp + eax + 0xb]
adc esi, 0
shl edi, 8
add edi, ebp
add edx, edi
mov ebp, dword [esp + 0x60]
adc esi, 0
add ebx, edx
sub ebx, dword [esp + 0x5c]
add ecx, esi
sub ecx, dword [esp + 0x58]
or ebx, ecx
jne 0x40fed8
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
imul esi, ecx
movzx ecx, byte [esi + eax + 4]
movzx ebx, byte [esi + eax + 5]
movzx edx, byte [esi + eax + 6]
movzx edi, byte [esi + eax + 7]
shl ecx, 0x18
shl ebx, 0x10
add ecx, ebx
xor ebp, ebp
lea ebx, [ebp + ebp]
shl edx, 8
add edx, edi
movzx edi, byte [esi + eax + 9]
add ecx, edx
movzx edx, byte [esi + eax + 8]
shl edx, 0x18
shl edi, 0x10
add edx, edi
movzx edi, byte [esi + eax + 0xa]
movzx eax, byte [esi + eax + 0xb]
adc ebp, 0
shl edi, 8
add edi, eax
add edx, edi
mov esi, dword [esp + 0x48]
adc ebp, 0
add ebx, edx
add ecx, ebp
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], ebx
lea eax, [ebp + ebp]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x54]
test eax, eax
jle 0x41000d
mov eax, dword [esp + 0x44]
mov edx, esi
xor ebx, ebx
inc ebx
mov esi, ecx
imul esi, dword [edx + 0x18]
add esi, dword [eax + 0x18]
movzx edi, byte [esi + ebx*4 + 8]
movzx ebp, byte [esi + ebx*4 + 9]
shl edi, 0x18
shl ebp, 0x10
add edi, ebp
movzx ebp, byte [esi + ebx*4 + 0xa]
movzx esi, byte [esi + ebx*4 + 0xb]
shl ebp, 8
add ebp, esi
add edi, ebp
mov dword [esp + ebx*4 + 0x14], edi
mov ebp, dword [edx + 0x14]
lea edi, [ebp + ebp]
cmp ebx, edi
jl 0x40ffd1
mov eax, dword [esp + 0x48]
lea edx, [ebp + ebp]
mov eax, dword [eax + 0x258]
test edx, edx
jle 0x410080
mov esi, dword [esp + 0x40]
lea edx, [ebp + ebp + 1]
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
sar ebx, 1
xor edx, edx
cmp eax, 1
je 0x410058
movss xmm0, dword [esp + edx*8 + 0x18]
comiss xmm0, dword [esi + edx*8 + 8]
ja 0x4100a0
movss xmm0, dword [esi + edx*8 + 0xc]
comiss xmm0, dword [esp + edx*8 + 0x1c]
ja 0x4100a0
inc edx
cmp edx, ebx
jb 0x410032
jmp 0x410079
mov ebp, dword [esi + edx*8 + 8]
cmp ebp, dword [esp + edx*8 + 0x18]
jl 0x41019b
mov ebp, dword [esi + edx*8 + 0xc]
cmp ebp, dword [esp + edx*8 + 0x1c]
jg 0x41019b
inc edx
cmp edx, ebx
jb 0x410032
nop dword [eax]
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x44]
cmp dword [edx], 0
jne 0x40fe43
mov esi, dword [esp]
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
add esp, 0x64
ret
mov dword [esp + 0x40], esi
test eax, eax
je 0x4100d5
mov edx, esi
xor eax, eax
mov ebp, dword [edx + eax*8 + 8]
mov edi, dword [edx + eax*8 + 0xc]
mov esi, dword [esp + eax*8 + 0x18]
cmp ebp, esi
cmovl esi, ebp
mov ebp, dword [esp + eax*8 + 0x1c]
mov dword [esp + eax*8 + 0x18], esi
cmp edi, ebp
cmovge ebp, edi
mov dword [esp + eax*8 + 0x1c], ebp
inc eax
cmp eax, ebx
jb 0x4100ac
jmp 0x410102
mov edx, esi
xor eax, eax
movss xmm0, dword [esp + eax*8 + 0x18]
minss xmm0, dword [edx + eax*8 + 8]
movss xmm1, dword [edx + eax*8 + 0xc]
maxss xmm1, dword [esp + eax*8 + 0x1c]
movss dword [esp + eax*8 + 0x18], xmm0
movss dword [esp + eax*8 + 0x1c], xmm1
inc eax
cmp eax, ebx
jb 0x4100d9
mov dword [esp + 0x40], edx
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
imul ecx, dword [ebp + 0x18]
add ecx, dword [esi + 0x18]
mov ebx, edx
shr ebx, 0x18
mov byte [ecx + 4], bl
mov ebx, edx
shr ebx, 0x10
mov byte [ecx + 5], bl
mov ebx, edx
shr ebx, 8
mov byte [ecx + 6], bl
mov ebx, eax
shr ebx, 0x10
mov byte [ecx + 7], dl
mov edx, eax
shr edx, 0x18
mov byte [ecx + 8], dl
mov edx, eax
shr edx, 8
mov byte [ecx + 9], bl
mov byte [ecx + 0xa], dl
mov byte [ecx + 0xb], al
mov edi, dword [ebp + 0x14]
add edi, edi
test edi, edi
jle 0x41018b
xor esi, esi
inc esi
mov eax, dword [esp + esi*4 + 0x14]
mov edx, eax
shr edx, 0x18
mov byte [ecx + esi*4 + 8], dl
mov ebx, eax
shr ebx, 0x10
mov byte [ecx + esi*4 + 9], bl
mov edx, eax
shr edx, 8
mov byte [ecx + esi*4 + 0xa], dl
mov byte [ecx + esi*4 + 0xb], al
mov edi, dword [ebp + 0x14]
add edi, edi
cmp esi, edi
jl 0x41015e
mov eax, dword [esp + 0x44]
mov dword [eax + 0x14], 1
jmp 0x410080
mov dword [esp + 0x40], esi
jmp 0x4100a4
xor ecx, ecx
jmp 0x40ff51
sub esp, 0x74
cmp dword [edx], 0
je 0x410467
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov ecx, dword [edx]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ecx + 0x18]
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x58], eax
mov ebx, dword [edx + 8]
mov dword [esp + 0x68], ebx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x64], edx
movzx ebp, byte [ecx + 4]
shl ebp, 0x18
movzx esi, byte [ecx + 5]
shl esi, 0x10
add ebp, esi
movzx ebx, byte [ecx + 6]
shl ebx, 8
movzx eax, byte [ecx + 7]
xor edi, edi
add ebx, eax
lea esi, [edi + edi]
add ebp, ebx
mov dword [esp + 0x54], ebp
movzx ebx, byte [ecx + 8]
xor eax, eax
shld eax, ebx, 0x18
shl ebx, 0x18
movzx ebp, byte [ecx + 9]
xor edx, edx
shld edx, ebp, 0x10
shl ebp, 0x10
add ebx, ebp
adc eax, edx
movzx edx, byte [ecx + 0xa]
shld edi, edx, 8
shl edx, 8
movzx ebp, byte [ecx + 0xb]
add edx, ebp
add ebx, edx
adc eax, edi
add esi, ebx
mov ebx, dword [esp + 0x54]
add ebx, eax
sub esi, dword [esp + 0x68]
sub ebx, dword [esp + 0x64]
or esi, ebx
je 0x410591
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
add ebx, dword [esp + 0x58]
inc dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
movzx ebp, byte [ebx + eax + 4]
shl ebp, 0x18
movzx esi, byte [ebx + eax + 5]
shl esi, 0x10
add ebp, esi
movzx edi, byte [ebx + eax + 6]
shl edi, 8
movzx ecx, byte [ebx + eax + 7]
xor edx, edx
add edi, ecx
mov dword [esp + 0x6c], edx
add ebp, edi
mov dword [esp + 0x70], ebp
movzx esi, byte [ebx + eax + 8]
xor ebp, ebp
shld ebp, esi, 0x18
shl esi, 0x18
movzx edi, byte [ebx + eax + 9]
xor ecx, ecx
shld ecx, edi, 0x10
shl edi, 0x10
add esi, edi
adc ebp, ecx
movzx ecx, byte [ebx + eax + 0xa]
shld edx, ecx, 8
shl ecx, 8
movzx eax, byte [ebx + eax + 0xb]
add ecx, eax
add esi, ecx
adc ebp, edx
mov ecx, dword [esp + 0x6c]
add ecx, esi
mov esi, dword [esp + 0x70]
add esi, ebp
sub ecx, dword [esp + 0x68]
sub esi, dword [esp + 0x64]
or ecx, esi
jne 0x410274
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x60], ecx
mov ebp, dword [esp + 0x58]
imul ebp, eax
mov dword [esp + 0x58], ebp
lea edi, [ecx + ebp]
mov dword [esp + 0x44], edi
movzx ebx, byte [edi + 4]
shl ebx, 0x18
movzx eax, byte [edi + 5]
shl eax, 0x10
add ebx, eax
movzx ecx, byte [edi + 6]
shl ecx, 8
movzx edx, byte [edi + 7]
xor esi, esi
add ecx, edx
lea ebp, [esi + esi]
add ebx, ecx
mov dword [esp + 0x40], ebx
movzx edx, byte [edi + 8]
xor eax, eax
shld eax, edx, 0x18
shl edx, 0x18
movzx ebx, byte [edi + 9]
xor ecx, ecx
shld ecx, ebx, 0x10
shl ebx, 0x10
add edx, ebx
adc eax, ecx
movzx ecx, byte [edi + 0xa]
shld esi, ecx, 8
shl ecx, 8
movzx edi, byte [edi + 0xb]
add ecx, edi
add edx, ecx
adc eax, esi
add ebp, edx
mov edx, dword [esp + 0x40]
add edx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x50]
mov ebx, dword [eax + 0x14]
lea eax, [ebx + ebx]
test eax, eax
mov ecx, dword [esp + 0x60]
jle 0x4103d5
xor ebp, ebp
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x44]
movzx ecx, byte [edx + ebp*4 + 0xc]
shl ecx, 0x18
movzx esi, byte [edx + ebp*4 + 0xd]
shl esi, 0x10
add ecx, esi
movzx esi, byte [edx + ebp*4 + 0xe]
shl esi, 8
movzx edi, byte [edx + ebp*4 + 0xf]
add esi, edi
add ecx, esi
mov dword [esp + ebp*4 + 0x18], ecx
inc ebp
cmp ebp, eax
jb 0x4103a5
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x50]
mov ebp, dword [edx + 0x258]
xor edx, edx
cmp ebp, 1
sete dl
test eax, eax
jle 0x41044b
lea eax, [ebx + ebx + 1]
mov ebx, eax
shr ebx, 0x1f
add ebx, eax
sar ebx, 1
xor edi, edi
mov esi, dword [esp + 0x48]
test edx, edx
jne 0x410423
fld dword [esp + edi*8 + 0x18]
fcomp dword [esi + edi*8 + 8]
fnstsw ax
sahf
ja 0x41046b
fld dword [esi + edi*8 + 0xc]
fcomp dword [esp + edi*8 + 0x1c]
fnstsw ax
sahf
ja 0x41046b
inc edi
cmp edi, ebx
jb 0x4103fe
jmp 0x410444
mov eax, dword [esi + edi*8 + 8]
cmp eax, dword [esp + edi*8 + 0x18]
jl 0x410588
mov eax, dword [esi + edi*8 + 0xc]
cmp eax, dword [esp + edi*8 + 0x1c]
jg 0x410588
inc edi
cmp edi, ebx
jb 0x4103fe
lea esi, [esi]
mov dword [esp + 0x48], esi
mov edx, dword [esp + 0x4c]
cmp dword [edx], 0
jne 0x4101d3
mov esi, dword [esp]
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
add esp, 0x74
ret
mov dword [esp + 0x48], esi
test ebp, ebp
je 0x4104a6
xor eax, eax
mov edx, esi
mov esi, dword [edx + eax*8 + 8]
mov ebp, dword [esp + eax*8 + 0x18]
cmp esi, ebp
jl 0x410485
mov esi, ebp
mov dword [esp + eax*8 + 0x18], esi
mov ebp, dword [edx + eax*8 + 0xc]
mov edi, dword [esp + eax*8 + 0x1c]
cmp ebp, edi
jge 0x410497
mov ebp, edi
mov dword [esp + eax*8 + 0x1c], ebp
inc eax
cmp eax, ebx
jb 0x410477
mov dword [esp + 0x48], edx
jmp 0x4104e9
xor edx, edx
mov ebp, esi
jmp 0x4104b0
fstp dword [esp + edx*8 + 0x14]
fld dword [esp + edx*8 + 0x18]
fld dword [ebp + edx*8 + 8]
fcom st(1)
fnstsw ax
sahf
ja 0x4104c1
fst st(1)
fstp st(0)
fstp dword [esp + edx*8 + 0x18]
fld dword [ebp + edx*8 + 0xc]
fld dword [esp + edx*8 + 0x1c]
fcom st(1)
fnstsw ax
sahf
jp 0x4104d8
jb 0x4104da
fst st(1)
fstp st(0)
inc edx
cmp edx, ebx
jb 0x4104ac
fstp dword [esp + edx*8 + 0x14]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x58]
add ebp, ecx
mov dword [esp + 0x58], ebp
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x18
mov byte [ebp + 4], cl
mov ebx, edx
shr ebx, 0x10
mov byte [ebp + 5], bl
mov ecx, edx
shr ecx, 8
mov byte [ebp + 6], cl
mov byte [ebp + 7], dl
mov ebx, eax
shrd ebx, edx, 0x18
mov byte [ebp + 8], bl
mov ecx, eax
shrd ecx, edx, 0x10
mov byte [ebp + 9], cl
mov ebx, eax
shrd ebx, edx, 8
mov byte [ebp + 0xa], bl
mov byte [ebp + 0xb], al
mov esi, dword [esp + 0x50]
mov edi, dword [esi + 0x14]
add edi, edi
test edi, edi
jle 0x410578
xor ebp, ebp
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x50]
inc ebp
mov ebx, dword [esp + ebp*4 + 0x14]
mov eax, ebx
shr eax, 0x18
mov byte [esi + ebp*4 + 8], al
mov edx, ebx
shr edx, 0x10
mov byte [esi + ebp*4 + 9], dl
mov ecx, ebx
shr ecx, 8
mov byte [esi + ebp*4 + 0xa], cl
mov byte [esi + ebp*4 + 0xb], bl
mov eax, dword [edi + 0x14]
add eax, eax
cmp ebp, eax
jl 0x41054b
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x14], 1
jmp 0x41044b
mov dword [esp + 0x48], esi
jmp 0x41046f
xor eax, eax
jmp 0x410308