Function at 0x10056b20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c7ced
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x1022b584]
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 edi, ecx
mov dword [ebp - 0x284], edi
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10056cbb
push 0x14
push str.ConfigConfigMgr.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1000cf00
mov byte [ebp - 4], 1
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x33
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10007f90
mov esi, eax
push str.init_config
push esi
mov byte [ebp - 4], 2
call fcn.10008dd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.10008e90
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x10056c59
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10056c4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005713e
push edx
push ecx
call fcn.101799c0
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x10056cb5
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10056cab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057143
push edx
push ecx
call fcn.101799c0
add esp, 8
mov edi, dword [ebp - 0x284]
mov eax, dword [ebp + 8]
push 0x208
mov dword [edi + 0x28], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1022f158]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x280]
push 1
push eax
call fcn.1016f450
add esp, 8
lea ecx, [ebp - 0x279]
mov dword [ebp - 4], 3
call fcn.10056590
test eax, eax
je 0x10057148
mov ecx, dword [ebp - 0x280]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10056d5e
test dx, dx
je 0x10056d5a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10056d5e
add ecx, 4
add eax, 4
test dx, dx
jne 0x10056d38
xor eax, eax
jmp 0x10056d63
sbb eax, eax
or eax, 1
lea ecx, [ebp - 0x279]
test eax, eax
jne 0x10056d77
call fcn.100564b0
jmp 0x10056f03
call fcn.10055b10
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10056da0
call fcn.100563d0
jmp 0x10056f03
call fcn.10054fb0
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10056dc9
call fcn.10054ed0
jmp 0x10056f03
call fcn.10054b50
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10056df2
call fcn.100562f0
jmp 0x10056f03
call fcn.10055e90
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10056e1b
call fcn.10054df0
jmp 0x10056f03
call fcn.10056050
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10056e44
call fcn.10056670
jmp 0x10056f03
call fcn.10056130
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10056e6d
call fcn.100555d0
jmp 0x10056f03
call fcn.10055090
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10056e93
call fcn.10055410
jmp 0x10056f03
call fcn.10054d10
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10056eb9
call fcn.10054a70
jmp 0x10056f03
call fcn.10055330
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10056edf
call fcn.10054370
jmp 0x10056f03
call fcn.10055f70
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10011af0
add esp, 8
test al, al
je 0x10056f11
lea ecx, [ebp - 0x279]
call fcn.100556b0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea esi, [edi + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100570f7
lea eax, [ebp - 0x218]
push eax
call fcn.1015b3b0
add esp, 4
test eax, eax
je 0x100570f7
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10056f65
push str.GetConfigCenterEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10056f65
call eax
mov dword [esi], eax
cmp dword [esi], 0
je 0x100570f7
xor ebx, ebx
call fcn.10058650
mov ecx, eax
call fcn.10182860
mov dword [ebp - 0x284], eax
test eax, eax
je 0x1005700d
mov ecx, dword [esi]
push str.basic_stub
push ecx
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [edi + 4]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ebx, dword [ebp - 0x284]
mov ecx, dword [esi]
push dword [ebx + 0xc]
mov eax, dword [ecx]
push 0x101d8c90
push edi
push ecx
call dword [eax + 0x10]
mov ecx, dword [esi]
push dword [ebx + 8]
push str.channel
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x10]
mov ecx, dword [esi]
push dword [ebx + 0x10]
push 0x101d8cb0
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x10]
mov ecx, dword [esi]
push dword [ebx]
push 0x101d8cbc
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x10]
mov ecx, dword [esi]
push dword [ebx + 4]
push 0x101d8cc4
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x10]
mov ebx, 1
jmp 0x100570f9
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100570f9
push 0x14
push str.ConfigConfigMgr.cpp
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], bl
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 4
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.1000cf00
mov byte [ebp - 4], 5
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x3b4]
push 0x81
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.10007f90
mov esi, eax
push str.init_cfgCenterHelper_failed._path:
push esi
mov byte [ebp - 4], 6
call fcn.10008dd0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1000fad0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3b4]
call fcn.10008e90
lea ecx, [ebp - 0x260]
call fcn.10007310
lea ecx, [ebp - 0x278]
call fcn.10007310
jmp 0x100570f9
xor ebx, ebx
mov esi, dword [ebp - 0x280]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005711e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.101799ce
mov esp, ebp
pop ebp
ret 4
call fcn.10190cce
call fcn.10190cce
push 0x80004005
call fcn.10009b10
int3