Function at 0x1017eda0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b12c8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0xb
mov dword [ebp - 0x40], ecx
xor edi, edi
push str.._ivw_g.cfg
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.10048340
mov dword [ebp - 4], edi
cmp esi, edi
je 0x1017ee13
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1017ee00
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.10048340
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x1017ee23
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1017f269
cmp eax, esi
je 0x1017f269
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x1017ee46
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 1
cmp eax, edi
je 0x1017ee66
push edi
push 0x102912c8
push eax
lea ecx, [ebp - 0x3c]
call fcn.1016e7a0
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.1016dbc0
mov ebx, dword [ebp - 0x50]
cmp ebx, dword [ebp - 0x4c]
je 0x1017eefd
jmp 0x1017ee90
xor edi, edi
mov esi, dword [edi*4 + 0x10416438]
mov ecx, ebx
call fcn.1004e8b0
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1017eec0
test cl, cl
je 0x1017eebc
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1017eec0
add eax, 2
add esi, 2
test cl, cl
jne 0x1017eea0
xor eax, eax
jmp 0x1017eec5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1017eed1
inc edi
cmp edi, 7
jl 0x1017ee92
jmp 0x1017eed6
cmp edi, 7
jl 0x1017eef5
cmp dword [ebx + 0x14], 0x10
jb 0x1017eee0
mov eax, dword [ebx]
jmp 0x1017eee2
mov eax, ebx
push eax
push str.CFG_VAD::init
push str._s__para_not_suitable_for_normal_operation__param___s_n
call sub.MSVCR100.dll_printf
add esp, 0xc
add ebx, 0x1c
cmp ebx, dword [ebp - 0x4c]
jne 0x1017ee90
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
mov edi, ecx
mov esi, eax
cmp eax, ecx
je 0x1017ef69
jmp 0x1017ef10
cmp dword [esi + 0x14], 0x10
jb 0x1017ef1a
mov eax, dword [esi]
jmp 0x1017ef1c
mov eax, esi
push str.wvad_param_normal_none
push eax
call sub.MSVCR100.dll__stricmp
add esp, 8
test eax, eax
je 0x1017ef35
add esi, 0x38
cmp esi, edi
jne 0x1017ef10
mov ecx, dword [ebp - 0x38]
cmp esi, ecx
je 0x1017ef66
test esi, esi
je 0x1017ef66
cmp dword [esi + 0x2c], 0
je 0x1017ef66
cmp dword [esi + 0x30], 0x10
lea eax, [esi + 0x1c]
jb 0x1017ef51
mov eax, dword [eax]
push 0
push 0
push eax
call sub.MSVCR100.dll_strtol
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov edi, ecx
mov esi, eax
cmp eax, ecx
je 0x1017efd3
mov ebx, 0x10
cmp dword [esi + 0x14], ebx
jb 0x1017ef7f
mov eax, dword [esi]
jmp 0x1017ef81
mov eax, esi
push str.wvad_param_sampleRate
push eax
call sub.MSVCR100.dll__stricmp
add esp, 8
test eax, eax
je 0x1017ef9a
add esi, 0x38
cmp esi, edi
jne 0x1017ef76
mov ecx, dword [ebp - 0x38]
cmp esi, ecx
je 0x1017efd0
test esi, esi
je 0x1017efd0
cmp dword [esi + 0x2c], 0
je 0x1017efd0
cmp dword [esi + 0x30], ebx
lea eax, [esi + 0x1c]
jb 0x1017efb5
mov eax, dword [eax]
push 0
push 0
push eax
call sub.MSVCR100.dll_strtol
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x3c]
add esp, 0xc
jmp 0x1017efd6
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov edi, ecx
mov esi, eax
cmp eax, ecx
je 0x1017f037
mov edi, edi
cmp dword [esi + 0x14], 0x10
jb 0x1017efea
mov eax, dword [esi]
jmp 0x1017efec
mov eax, esi
push str.wvad_param_nEnergyThreshold
push eax
call sub.MSVCR100.dll__stricmp
add esp, 8
test eax, eax
je 0x1017f005
add esi, 0x38
cmp esi, edi
jne 0x1017efe0
mov ecx, dword [ebp - 0x38]
cmp esi, ecx
je 0x1017f034
test esi, esi
je 0x1017f034
cmp dword [esi + 0x2c], 0
je 0x1017f034
cmp dword [esi + 0x30], 0x10
lea eax, [esi + 0x1c]
jb 0x1017f021
mov eax, dword [eax]
push 0
push 0
push eax
call sub.MSVCR100.dll_strtol
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x3c]
mov edi, ecx
mov esi, eax
cmp eax, ecx
je 0x1017f097
nop
cmp dword [esi + 0x14], 0x10
jb 0x1017f04a
mov eax, dword [esi]
jmp 0x1017f04c
mov eax, esi
push str.wvad_param_nEndGap
push eax
call sub.MSVCR100.dll__stricmp
add esp, 8
test eax, eax
je 0x1017f065
add esi, 0x38
cmp esi, edi
jne 0x1017f040
mov ecx, dword [ebp - 0x38]
cmp esi, ecx
je 0x1017f094
test esi, esi
je 0x1017f094
cmp dword [esi + 0x2c], 0
je 0x1017f094
cmp dword [esi + 0x30], 0x10
lea eax, [esi + 0x1c]
jb 0x1017f081
mov eax, dword [eax]
push 0
push 0
push eax
call sub.MSVCR100.dll_strtol
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov edi, ecx
mov esi, eax
cmp eax, ecx
je 0x1017f0f5
nop
cmp dword [esi + 0x14], 0x10
jb 0x1017f0aa
mov eax, dword [esi]
jmp 0x1017f0ac
mov eax, esi
push str.wvad_param_isDebugOn
push eax
call sub.MSVCR100.dll__stricmp
add esp, 8
test eax, eax
je 0x1017f0c5
add esi, 0x38
cmp esi, edi
jne 0x1017f0a0
mov ecx, dword [ebp - 0x38]
cmp esi, ecx
je 0x1017f0f2
test esi, esi
je 0x1017f0f2
cmp dword [esi + 0x2c], 0
je 0x1017f0f2
cmp dword [esi + 0x30], 0x10
lea eax, [esi + 0x1c]
jb 0x1017f0e1
mov eax, dword [eax]
push 0
push eax
call fcn.10164e10
mov ecx, dword [ebp - 0x38]
add esp, 8
mov byte [ebx + 0x10], al
mov eax, dword [ebp - 0x3c]
mov edi, ecx
mov esi, eax
cmp eax, ecx
je 0x1017f155
lea ecx, [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x1017f10a
mov eax, dword [esi]
jmp 0x1017f10c
mov eax, esi
push str.wvad_param_isLogVadFileOut
push eax
call sub.MSVCR100.dll__stricmp
add esp, 8
test eax, eax
je 0x1017f125
add esi, 0x38
cmp esi, edi
jne 0x1017f100
mov ecx, dword [ebp - 0x38]
cmp esi, ecx
je 0x1017f152
test esi, esi
je 0x1017f152
cmp dword [esi + 0x2c], 0
je 0x1017f152
cmp dword [esi + 0x30], 0x10
lea eax, [esi + 0x1c]
jb 0x1017f141
mov eax, dword [eax]
push 0
push eax
call fcn.10164e10
mov ecx, dword [ebp - 0x38]
add esp, 8
mov byte [ebx + 0x11], al
mov eax, dword [ebp - 0x3c]
mov edi, ecx
mov esi, eax
cmp eax, ecx
je 0x1017f1b5
lea ecx, [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x1017f16a
mov eax, dword [esi]
jmp 0x1017f16c
mov eax, esi
push str.wvad_param_isLogVadFileIn
push eax
call sub.MSVCR100.dll__stricmp
add esp, 8
test eax, eax
je 0x1017f185
add esi, 0x38
cmp esi, edi
jne 0x1017f160
mov ecx, dword [ebp - 0x38]
cmp esi, ecx
je 0x1017f1b2
test esi, esi
je 0x1017f1b2
cmp dword [esi + 0x2c], 0
je 0x1017f1b2
cmp dword [esi + 0x30], 0x10
lea eax, [esi + 0x1c]
jb 0x1017f1a1
mov eax, dword [eax]
push 0
push eax
call fcn.10164e10
mov ecx, dword [ebp - 0x38]
add esp, 8
mov byte [ebx + 0x12], al
mov eax, dword [ebp - 0x3c]
mov edi, ecx
mov esi, eax
cmp eax, ecx
je 0x1017f20f
lea ecx, [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x1017f1ca
mov eax, dword [esi]
jmp 0x1017f1cc
mov eax, esi
push str.wvad_param_normal_count
push eax
call sub.MSVCR100.dll__stricmp
add esp, 8
test eax, eax
je 0x1017f1e5
add esi, 0x38
cmp esi, edi
jne 0x1017f1c0
cmp esi, dword [ebp - 0x38]
je 0x1017f20f
test esi, esi
je 0x1017f20f
cmp dword [esi + 0x2c], 0
je 0x1017f20f
cmp dword [esi + 0x30], 0x10
lea eax, [esi + 0x1c]
jb 0x1017f1ff
mov eax, dword [eax]
push 0
push 0
push eax
call sub.MSVCR100.dll_strtol
add esp, 0xc
mov dword [ebx + 0x14], eax
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x1017f253
mov edi, dword [ebp - 0x4c]
cmp esi, edi
je 0x1017f24a
mov ebx, 0xf
cmp dword [esi + 0x14], 0x10
jb 0x1017f233
mov eax, dword [esi]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, edi
jne 0x1017f222
mov esi, dword [ebp - 0x50]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.1016e000
mov esi, 0x10
jmp 0x1017f2f1
test byte [0x10455d90], 1
jne 0x1017f290
or dword [0x10455d90], 1
mov ecx, 0x10455b90
call fcn.101651b0
push 0x101b4ca0
call fcn.1015f6af
add esp, 4
cmp dword [0x10455d68], edi
jg 0x1017f2f1
push 0x1016baa0
push edi
push 0x5e
push str.F:userypzhu2ivw_trunk_1421includecfg_template.h
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edi
call fcn.101697a0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
push edx
push str.__Couldnt_find_cfg_file
add eax, 0xbc0
push str.CFG_VAD::init
push eax
mov byte [ebp - 4], 4
call fcn.10167060
add esp, 8
push eax
call fcn.10167060
add esp, 8
push eax
call fcn.100561b0
add esp, 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.1016cac0
cmp dword [ebp - 0x18], esi
jb 0x1017f302
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret 4