Function at 0x100177aa
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x100c87c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x10050cc6
test esi, esi
je 0x10050cc6
push 0x100175a0
push ebx
call sym.MSVCR110.dll_wcspbrk
pop ecx
pop ecx
test eax, eax
jne 0x1003101b
cmp word [ebx + 2], 0x3a
jne 0x10031034
movzx eax, word [ebx]
test ax, ax
je 0x1001780a
cmp word [ebx + 4], di
je 0x1003101b
push eax
call sym.MSVCR110.dll_towlower
movzx eax, ax
pop ecx
sub eax, 0x60
push edi
push edi
push edi
mov dword [ebp - 0x480], eax
lea eax, [ebp - 0x46c]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0x474], eax
cmp eax, 0xffffffff
je 0x10031054
test dword [ebp - 0x46c], 0x400
jne 0x10050d6b
cmp dword [ebp - 0x458], edi
je 0x10050dd9
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10031049
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10031049
movzx eax, word [ebp - 0x210]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
call fcn.100175a6
add esp, 0x1c
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
cmp dword [ebp - 0x460], edi
je 0x10050df0
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x1003103e
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1003103e
movzx eax, word [ebp - 0x210]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
call fcn.100175a6
add esp, 0x1c
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
cmp dword [ebp - 0x468], edi
je 0x10050e0d
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x1003103e
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1003103e
movzx eax, word [ebp - 0x210]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
call fcn.100175a6
add esp, 0x1c
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
push dword [ebp - 0x474]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push dword [ebp - 0x46c]
call fcn.10017a3a
pop ecx
pop ecx
xor ecx, ecx
mov word [esi + 6], ax
mov eax, dword [ebp - 0x44c]
inc ecx
mov word [esi + 8], cx
mov dword [esi + 0x14], eax
cmp dword [ebp - 0x450], edi
jne 0x10050e2a
mov ecx, dword [ebp - 0x480]
xor eax, eax
dec ecx
mov word [esi + 4], ax
mov dword [esi + 0xa], eax
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011bae
leave
ret
jge 0x10031025
jge 0x10031037
and byte [ecx + 0x1065], al
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
inc ebp
mov esp, 0x45ffdc76
or al, 0x8b
test dword [eax - 1], edi
invalid
call sym.MSVCR110.dll___doserrno
mov dword [eax], edi
call sym.MSVCR110.dll__errno
mov dword [eax], 0x16
call sym.MSVCR110.dll__invalid_parameter_noinfo
jmp 0x1003102c
cmp dword [ebp - 0x448], 0xa000000c
jne 0x1001784e
or dword [ebp - 0x470], 0xffffffff
test byte [ebp - 0x46c], 0x10
mov eax, edi
je 0x10050d92
mov eax, 0x2000
push edi
push 0x40
push eax
lea eax, [ebp - 0x470]
push ebx
push eax
call sym.MSVCR110.dll__wsopen_s
add esp, 0x14
test eax, eax
jne 0x1003101b
cmp dword [ebp - 0x470], 0xffffffff
je 0x1003101b
push esi
push dword [ebp - 0x470]
call sym.MSVCR110.dll__fstat64i32
push dword [ebp - 0x470]
mov esi, eax
call sym.MSVCR110.dll__close
add esp, 0xc
jmp 0x10050e4a
cmp dword [ebp - 0x454], edi
jne 0x1001785a
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
jmp 0x100178d2
cmp dword [ebp - 0x45c], edi
jne 0x100178de
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x1c], eax
jmp 0x10017956
cmp dword [ebp - 0x464], edi
jne 0x10017962
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x2c], eax
jmp 0x100179da
call sym.MSVCR110.dll__errno
mov dword [eax], 0x84
mov dword [esi + 0x14], edi
or edi, 0xffffffff
jmp 0x10017a14
push dword [ebp - 0x474]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x10017a2b