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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ef29
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x338
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040cd80
mov dword [ebp - 0x334], eax
lea esi, [eax + 0x20]
cmp esi, edi
je 0x40d1ca
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x40d1bf
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
mov ecx, esi
call fcn.0040b450
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d1d4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d22a
mov byte [ebp - 0x338], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40d200
mov esi, dword [esi]
mov ecx, dword [ebp - 0x334]
lea eax, [ebp - 0x33c]
push 0xfde9
push esi
push eax
call fcn.004b0360
lea ecx, [ebp - 0x33c]
mov dword [ebp - 4], 0xffffffff
call fcn.004af6c0
call fcn.0040cd80
push str.lastquery
push str.setting
mov ecx, eax
call fcn.004b01c0
test eax, eax
jne 0x40d24c
mov dword [ebp - 0x340], eax
jmp 0x40d25b
push eax
call fcn.004ee53c
add esp, 4
mov dword [ebp - 0x340], eax
call fcn.0040cd80
push str.hour
push str.setting
mov ecx, eax
call fcn.004b01c0
test eax, eax
jne 0x40d279
xor edi, edi
jmp 0x40d292
push eax
call fcn.004ee53c
add esp, 4
mov dword [ebp - 0x334], eax
test eax, eax
jg 0x40d32d
mov edi, eax
push 0x33
xor eax, eax
mov dword [ebp - 0x34], 0
push str.nHour__0_and_return_nHour:_0_nLastQueryTime:_1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.0040b450
push 0x2f
push str.t_netConfigManager.cpp
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 1
call fcn.00411450
mov esi, eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
mov dword [esi + 0x64], 0
cmp esi, eax
je 0x40d2f7
cmp dword [ebp - 0x30], 8
mov ecx, eax
push dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x44]
push ecx
mov ecx, esi
call fcn.0040b450
mov eax, dword [ebp - 0x340]
mov ecx, esi
cdq
push edx
push eax
mov eax, edi
cdq
push edx
push eax
call fcn.00411b50
mov ecx, eax
call fcn.00411b50
lea ecx, [ebp - 0xc8]
call fcn.00411690
lea ecx, [ebp - 0x44]
call fcn.0040b3f0
xor al, al
jmp 0x40d527
call fcn.0040cd80
push str.lastpop
push str.setting
mov ecx, eax
call fcn.004b01c0
test eax, eax
je 0x40d350
push eax
call fcn.004ee53c
add esp, 4
mov dword [edi + 0x184], eax
call fcn.0040cd80
push str.lastclose
push str.setting
mov ecx, eax
call fcn.004b01c0
test eax, eax
je 0x40d379
push eax
call fcn.004ee53c
add esp, 4
lea esi, [edi + 0x48]
mov dword [edi + 0x18c], eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d38c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d4c8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 3
mov ecx, esi
call fcn.00413810
test al, al
je 0x40d4b9
lea eax, [ebp - 0x330]
push eax
call fcn.004ba8f0
add esp, 4
lea eax, [ebp - 0x23c]
push eax
call fcn.004bab70
movups xmm0, xmmword [0x552b80]
add esp, 4
mov byte [ebp - 0x138], 1
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x330]
cmovae eax, dword [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x148], xmm0
call fcn.004b1a60
mov edx, eax
mov dword [ebp - 0x338], edx
test edx, edx
je 0x40d45b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x344], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d428
sub ecx, dword [ebp - 0x344]
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040ee70
push dword [ebp - 0x338]
call fcn.004e4a56
add esp, 4
lea eax, [ebp - 0x2c]
lea ecx, [edi + 0x60]
push eax
call fcn.0040f5b0
jmp 0x40d4b9
push str.LoadFromLocalFile_Decrypt_failed
lea ecx, [ebp - 0x5c]
call fcn.0040c220
push 0x94
push str.t_netConfigManager.cpp
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 4
call fcn.00411450
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
mov dword [eax + 0x64], 0
cmp eax, ecx
je 0x40d4a6
cmp dword [ebp - 0x48], 8
push dword [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.0040b450
lea ecx, [ebp - 0x130]
call fcn.00411690
lea ecx, [ebp - 0x5c]
call fcn.0040b3f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ee10
push 0
call fcn.004ee60f
add esp, 4
mov dword [ebp - 0x338], eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x344], edx
jb 0x40d4e6
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d51e
mov eax, dword [ebp - 0x340]
mov ecx, dword [ebp - 0x338]
mov esi, dword [ebp - 0x344]
cdq
sub ecx, eax
sbb esi, edx
imul eax, dword [ebp - 0x334], 0xe10
cdq
cmp esi, edx
jl 0x40d525
jg 0x40d51e
cmp ecx, eax
jb 0x40d525
mov ecx, edi
call fcn.0040dc60
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret