Function at 0x10175e7
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 4]
push ebx
xor ebx, ebx
cmp edx, ebx
jne 0x1017508
mov eax, dword [esp + 0xc]
jmp 0x10177a5
push esi
mov esi, dword [esp + 0x10]
cmp esi, ebx
jne 0x1017518
mov eax, edx
jmp 0x10177a4
cmp byte [edx + 3], 2
jne 0x10177a2
movzx eax, word [edx + 6]
movzx ecx, word [edx]
lea eax, [eax*4 + 8]
cmp eax, ecx
jne 0x10177a2
test byte [edx + 4], 0xf0
jne 0x10177a2
mov al, byte [edx + 8]
cmp al, byte [esi + 8]
jne 0x10177a2
push edi
push 0xc
xor eax, eax
pop ecx
mov edi, 0x1022dd8
rep stosd dword es:[edi], eax
mov byte [0x1022dda], 9
mov byte [0x1022ddb], 2
mov byte [0x1022ddc], bl
movzx eax, byte [edx + 8]
dec eax
dec eax
pop edi
je 0x101769b
sub eax, 3
je 0x10175e9
dec eax
jne 0x10177a2
mov word [0x1022dd8], 0x14
mov byte [0x1022ddc], bl
mov byte [0x1022ddd], bl
mov word [0x1022dde], 3
mov byte [0x1022de0], 6
mov byte [0x1022de1], bl
mov word [0x1022de2], 2
mov byte [0x1022de4], 0x80
mov byte [0x1022de5], bl
mov word [0x1022de6], 1
mov edx, dword [edx + 0x10]
mov esi, dword [esi + 0x10]
cmp edx, esi
ja 0x10175de
mov edx, esi
mov dword [reloc.msvcrt.dll___p__commode], edx
jmp 0x101779b
mov word [0x1022dd8], 0x24
mov byte [0x1022ddc], bl
mov byte [0x1022ddd], bl
mov word [0x1022dde], 7
mov byte [0x1022de0], 5
mov byte [0x1022de1], bl
mov word [0x1022de2], 6
mov byte [0x1022de4], 0x7f
mov byte [0x1022de5], bl
mov word [0x1022de6], 5
fld dword [edx + 0x10]
fcomp dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jne 0x1017645
fld dword [edx + 0x10]
jmp 0x1017648
fld dword [esi + 0x10]
fstp dword [reloc.msvcrt.dll___p__commode]
fld dword [edx + 0x14]
fcomp dword [esi + 0x14]
fnstsw ax
test ah, 0x41
jne 0x1017660
fld dword [edx + 0x14]
jmp 0x1017663
fld dword [esi + 0x14]
mov eax, dword [reloc.msvcrt.dll___p__commode]
fstp dword [reloc.msvcrt.dll___p__commode]
mov dword [reloc.msvcrt.dll___p__commode], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jb 0x101767f
mov eax, ecx
mov dword [reloc.msvcrt.dll___p__commode], eax
mov edx, dword [edx + 0x20]
mov esi, dword [esi + 0x20]
cmp edx, esi
ja 0x1017690
mov edx, esi
mov dword [reloc.msvcrt.dll___p__commode], edx
jmp 0x101779b
mov word [0x1022dd8], 0x30
mov byte [0x1022ddc], bl
mov byte [0x1022ddd], bl
mov word [0x1022dde], 0xa
mov byte [0x1022de0], 2
mov byte [0x1022de1], bl
mov word [0x1022de2], 9
mov byte [0x1022de4], 0x7f
mov byte [0x1022de5], bl
mov word [0x1022de6], 5
fld dword [edx + 0x10]
fcomp dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jne 0x10176f7
fld dword [edx + 0x10]
jmp 0x10176fa
fld dword [esi + 0x10]
fstp dword [reloc.msvcrt.dll___p__commode]
fld dword [edx + 0x14]
fcomp dword [esi + 0x14]
fnstsw ax
test ah, 0x41
jne 0x1017712
fld dword [edx + 0x14]
jmp 0x1017715
fld dword [esi + 0x14]
fstp dword [reloc.msvcrt.dll___p__commode]
fld dword [edx + 0x18]
fcomp dword [esi + 0x18]
fnstsw ax
test ah, 0x41
jne 0x101772d
fld dword [edx + 0x18]
jmp 0x1017730
fld dword [esi + 0x18]
fstp dword [reloc.msvcrt.dll___p__commode]
mov eax, dword [edx + 0x1c]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jb 0x1017742
mov eax, ecx
mov dword [reloc.msvcrt.dll___p__commode], eax
mov eax, dword [edx + 0x20]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
ja 0x1017753
mov eax, ecx
mov dword [reloc.msvcrt.dll___p__commode], eax
mov byte [0x1022dfc], 0x82
mov byte [0x1022dfd], bl
mov word [0x1022dfe], 2
fld dword [edx + 0x28]
fcomp dword [esi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x1017780
fld dword [edx + 0x28]
jmp 0x1017783
fld dword [esi + 0x28]
fstp dword [reloc.msvcrt.dll___p__commode]
mov edx, dword [edx + 0x2c]
mov esi, dword [esi + 0x2c]
cmp edx, esi
jb 0x1017795
mov edx, esi
mov dword [reloc.msvcrt.dll___p__commode], edx
mov eax, 0x1022dd8
jmp 0x10177a4
xor eax, eax
pop esi
pop ebx
ret 8