Function at 0x5a9010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e29af
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4b4], ecx
mov ecx, dword [ebp - 0x4b4]
call fcn.005a8ee0
mov ecx, dword [ebp + 8]
call fcn.00493020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
jne 0x5a9065
jmp 0x5a9348
xor eax, eax
jne 0x5a9049
mov dword [ebp - 0x198], 0
push 0x62a3b8
mov ecx, dword [ebp + 8]
call fcn.00493020
push eax
lea ecx, [ebp - 0x198]
push ecx
call fcn.00525b92
add esp, 0xc
mov dword [ebp - 0x19c], eax
xor edx, edx
cmp dword [ebp - 0x198], 0
setne dl
test edx, edx
jne 0x5a90ab
jmp 0x5a9348
xor eax, eax
jne 0x5a9096
push 0
push 1
lea ecx, [ebp - 0x194]
call fcn.005a5c50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x198]
push ecx
lea ecx, [ebp - 0x194]
call fcn.005a5a50
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x198]
push edx
call fcn.00525a3d
add esp, 4
xor eax, eax
cmp dword [ebp - 0x14], 0
sete al
test eax, eax
jne 0x5a910d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x194]
call fcn.005a5ba0
jmp 0x5a9348
xor ecx, ecx
jne 0x5a90e9
lea ecx, [ebp - 0x194]
call fcn.00497600
mov dword [ebp - 0x1a4], eax
xor edx, edx
cmp dword [ebp - 0x1a4], 0
setne dl
test edx, edx
jne 0x5a9149
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x194]
call fcn.005a5ba0
jmp 0x5a9348
xor eax, eax
jne 0x5a9122
push str.config
mov ecx, dword [ebp - 0x1a4]
call fcn.00497570
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp dword [ebp - 0x10], 0
setne cl
test ecx, ecx
jne 0x5a9184
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x194]
call fcn.005a5ba0
jmp 0x5a9348
xor edx, edx
jne 0x5a9160
push str.forcepop
mov ecx, dword [ebp - 0x10]
call fcn.00497590
mov ecx, dword [ebp - 0x4b4]
mov dword [ecx], eax
push str.popflag
mov ecx, dword [ebp - 0x10]
call fcn.00497590
mov edx, dword [ebp - 0x4b4]
mov dword [edx + 4], eax
push str.groupid
mov ecx, dword [ebp - 0x10]
call fcn.00497590
mov ecx, dword [ebp - 0x4b4]
mov dword [ecx + 8], eax
push str.siteid
mov ecx, dword [ebp - 0x10]
call fcn.00497590
mov edx, dword [ebp - 0x4b4]
mov dword [edx + 0x18], eax
push 0
push 0x62a3ec
mov ecx, dword [ebp - 0x10]
call fcn.005a7770
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x5a9253
push 0xfde9
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0040e420
mov dword [ebp - 0x4b8], eax
mov ecx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4bc]
call fcn.00493020
push eax
mov ecx, dword [ebp - 0x4b4]
add ecx, 0xc
call fcn.0040b1c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
call fcn.0040e6c0
push 0
push str.mt_id
mov ecx, dword [ebp - 0x10]
call fcn.005a7770
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5a92be
push 0xfde9
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x3ac]
call fcn.0040e420
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c4]
call fcn.00493020
push eax
mov ecx, dword [ebp - 0x4b4]
add ecx, 0x10
call fcn.0040b1c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3ac]
call fcn.0040e6c0
push 0
push str.ccode
mov ecx, dword [ebp - 0x10]
call fcn.005a7770
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5a9329
push 0xfde9
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x4b0]
call fcn.0040e420
mov dword [ebp - 0x4c8], eax
mov edx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4cc], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4cc]
call fcn.00493020
push eax
mov ecx, dword [ebp - 0x4b4]
add ecx, 0x14
call fcn.0040b1c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4b0]
call fcn.0040e6c0
mov eax, dword [ebp - 0x4b4]
mov dword [eax + 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x194]
call fcn.005a5ba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4