Function at 0x582360
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x24]
push ebx
push ebp
xor ebp, ebp
push esi
xor ebx, ebx
cmp ecx, 4
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
jl 0x58264a
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
add esi, 8
mov dword [esp + 0x20], 3
add edi, 3
fld dword [esi - 8]
fcomp dword [0x6bdbc4]
fnstsw ax
test ah, 0x41
jne 0x58243b
movzx eax, byte [edi - 1]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul dword [esi - 8]
call fcn.00666390
add dword [esp + 0x10], eax
movzx ecx, byte [edi - 2]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul dword [esi - 8]
call fcn.00666390
add dword [esp + 0x14], eax
movzx edx, byte [edi - 3]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmul dword [esi - 8]
call fcn.00666390
mov ecx, dword [esp + 0x18]
add ecx, eax
mov al, byte [esp + 0x38]
test al, al
mov dword [esp + 0x18], ecx
je 0x582426
movzx eax, byte [edi]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul dword [esi - 8]
call fcn.00666390
movzx eax, al
cmp eax, ebx
jle 0x58243b
mov ebx, eax
jmp 0x58243b
movzx ecx, byte [edi]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul dword [esi - 8]
call fcn.00666390
add ebx, eax
fld dword [esi - 4]
fcomp dword [0x6bdbc4]
fnstsw ax
test ah, 0x41
jne 0x5824e6
movzx edx, byte [edi + 3]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmul dword [esi - 4]
call fcn.00666390
mov ecx, dword [esp + 0x10]
add ecx, eax
movzx eax, byte [edi + 2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x24]
fmul dword [esi - 4]
call fcn.00666390
movzx ecx, byte [edi + 1]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
add edx, eax
mov dword [esp + 0x14], edx
fild dword [esp + 0x24]
fmul dword [esi - 4]
call fcn.00666390
mov ecx, dword [esp + 0x18]
add ecx, eax
mov al, byte [esp + 0x38]
test al, al
mov dword [esp + 0x18], ecx
je 0x5824d0
movzx edx, byte [edi + 4]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmul dword [esi - 4]
call fcn.00666390
movzx eax, al
cmp eax, ebx
jle 0x5824e6
mov ebx, eax
jmp 0x5824e6
movzx eax, byte [edi + 4]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul dword [esi - 4]
call fcn.00666390
add ebx, eax
fld dword [esi]
fcomp dword [0x6bdbc4]
fnstsw ax
test ah, 0x41
jne 0x58258b
movzx ecx, byte [edi + 7]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul dword [esi]
call fcn.00666390
movzx edx, byte [edi + 6]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], edx
add ecx, eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x24]
fmul dword [esi]
call fcn.00666390
mov edx, dword [esp + 0x14]
add edx, eax
movzx eax, byte [edi + 5]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
fild dword [esp + 0x24]
fmul dword [esi]
call fcn.00666390
mov ecx, dword [esp + 0x18]
add ecx, eax
mov al, byte [esp + 0x38]
test al, al
mov dword [esp + 0x18], ecx
je 0x582576
movzx ecx, byte [edi + 8]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul dword [esi]
call fcn.00666390
movzx eax, al
cmp eax, ebx
jle 0x58258b
mov ebx, eax
jmp 0x58258b
movzx edx, byte [edi + 8]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmul dword [esi]
call fcn.00666390
add ebx, eax
fld dword [esi + 4]
fcomp dword [0x6bdbc4]
fnstsw ax
test ah, 0x41
jne 0x58262a
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul dword [esi + 4]
call fcn.00666390
add dword [esp + 0x10], eax
movzx ecx, byte [edi + 0xa]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul dword [esi + 4]
call fcn.00666390
add dword [esp + 0x14], eax
movzx edx, byte [edi + 9]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmul dword [esi + 4]
call fcn.00666390
mov ecx, dword [esp + 0x18]
add ecx, eax
mov al, byte [esp + 0x38]
test al, al
mov dword [esp + 0x18], ecx
je 0x582614
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul dword [esi + 4]
call fcn.00666390
movzx eax, al
cmp eax, ebx
jle 0x58262a
mov ebx, eax
jmp 0x58262a
movzx ecx, byte [edi + 0xc]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul dword [esi + 4]
call fcn.00666390
add ebx, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add eax, 4
add ebp, 4
add esi, 0x10
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x58239e
cmp ebp, ecx
jge 0x58271b
mov edx, dword [esp + 0x2c]
lea esi, [edx + ebp*4 + 3]
lea ebx, [ebx]
mov ecx, dword [esp + 0x30]
fld dword [ecx + ebp*4]
fcomp dword [0x6bdbc4]
fnstsw ax
test ah, 0x41
jne 0x58270b
movzx eax, byte [esi - 1]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul dword [ecx + ebp*4]
call fcn.00666390
movzx ecx, byte [esi - 2]
mov edi, dword [esp + 0x10]
add edi, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x30]
fild dword [esp + 0x2c]
fmul dword [edi + ebp*4]
call fcn.00666390
add dword [esp + 0x14], eax
movzx edx, byte [esi - 3]
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
fmul dword [edi + ebp*4]
call fcn.00666390
mov ecx, dword [esp + 0x18]
add ecx, eax
mov al, byte [esp + 0x38]
test al, al
mov dword [esp + 0x18], ecx
je 0x5826f6
movzx eax, byte [esi]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul dword [edi + ebp*4]
call fcn.00666390
movzx eax, al
cmp eax, ebx
jle 0x58270b
mov ebx, eax
jmp 0x58270b
movzx ecx, byte [esi]
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
fmul dword [edi + ebp*4]
call fcn.00666390
add ebx, eax
mov eax, dword [esp + 0x34]
inc ebp
add esi, 4
cmp ebp, eax
jl 0x582660
mov ecx, dword [esp + 0x10]
mov eax, 0xff
cmp ecx, eax
mov byte [esp + 0x1e], al
jg 0x582730
mov byte [esp + 0x1e], cl
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov byte [esp + 0x1d], al
jg 0x582740
mov byte [esp + 0x1d], cl
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov byte [esp + 0x1c], al
jg 0x582750
mov byte [esp + 0x1c], cl
cmp ebx, eax
mov byte [esp + 0x1f], al
jg 0x58275c
mov byte [esp + 0x1f], bl
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret