Function at 0x10057eb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c7eae
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x298], eax
mov edi, dword [eax + 0x44]
lea edx, [eax + 0x44]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2b0], ecx
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x2a0], edi
cmp edi, dword [eax + 0x48]
je 0x100585d4
lea eax, [edi + 0xc]
mov dword [ebp - 0x294], eax
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.100121a0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x29c], esi
mov edx, dword [ebp - 0x294]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
mov edx, dword [edx - 8]
mov dword [ebp - 0x28c], edx
jge 0x10057f6f
push 0x104
lea ecx, [ebp - 0x29c]
call fcn.1000f500
mov esi, dword [ebp - 0x29c]
mov edx, dword [ebp - 0x28c]
cmp dword [esi - 8], 0x104
jl 0x1005860c
push edx
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.101952b4
add esp, 8
test eax, eax
js 0x1005860c
cmp eax, dword [esi - 8]
jg 0x1005860c
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005858d
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
call fcn.10035200
add esp, 8
test eax, eax
jne 0x1005816e
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 0x1005816e
push 0x14
push str.ConfigConfigMgr.cpp
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
mov byte [ebp - 0x240], 0
call fcn.1000cf00
mov byte [ebp - 4], 2
call fcn.100a97a0
mov dword [ebp - 0x290], eax
lea ecx, [ebp - 0x348]
push 0xe0
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10007f90
mov dword [ebp - 0x28c], eax
push 0x101d8db8
push eax
mov byte [ebp - 4], 3
call fcn.1000fad0
push esi
push dword [ebp - 0x28c]
call fcn.1000fad0
push str._:_calc_md5
push dword [ebp - 0x28c]
call fcn.1000fad0
mov ecx, dword [ebp - 0x290]
add esp, 0x18
mov eax, dword [ecx]
push dword [ebp - 0x28c]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x348]
call fcn.10008e90
mov edx, dword [ebp - 0x22c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x10058115
mov ecx, dword [ebp - 0x240]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005810b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058616
push edx
push ecx
call fcn.101799c0
add esp, 8
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
mov byte [ebp - 0x240], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1005816e
mov ecx, dword [ebp - 0x258]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10058164
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058616
push edx
push ecx
call fcn.101799c0
add esp, 8
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.1018d4b0
push 0x104
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10035050
add esp, 0x18
test eax, eax
jne 0x1005832a
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 0x1005832a
push 0x14
push str.ConfigConfigMgr.cpp
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 4
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
mov byte [ebp - 0x240], 0
call fcn.1000cf00
mov byte [ebp - 4], 5
call fcn.100a97a0
mov dword [ebp - 0x290], eax
lea ecx, [ebp - 0x348]
push 0xe5
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10007f90
mov dword [ebp - 0x28c], eax
push 0x101d8db8
push eax
mov byte [ebp - 4], 6
call fcn.1000fad0
push esi
push dword [ebp - 0x28c]
call fcn.1000fad0
push str._:_digest_md5
push dword [ebp - 0x28c]
call fcn.1000fad0
mov ecx, dword [ebp - 0x290]
add esp, 0x18
mov eax, dword [ecx]
push dword [ebp - 0x28c]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x348]
call fcn.10008e90
mov edx, dword [ebp - 0x22c]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x100582d1
mov ecx, dword [ebp - 0x240]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100582c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058616
push edx
push ecx
call fcn.101799c0
add esp, 8
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
mov byte [ebp - 0x240], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1005832a
mov ecx, dword [ebp - 0x258]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10058320
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058616
push edx
push ecx
call fcn.101799c0
add esp, 8
mov eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x228]
add eax, 0xfffffffc
push ecx
mov dword [ebp - 0x2a8], eax
push dword [eax]
call fcn.1019694f
add esp, 8
test eax, eax
jne 0x1005858d
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 0x100584f6
push 0x14
push str.ConfigConfigMgr.cpp
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], 0xf
mov byte [ebp - 0x288], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 7
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0xf
mov byte [ebp - 0x270], 0
call fcn.1000cf00
mov byte [ebp - 4], 8
call fcn.100a97a0
mov dword [ebp - 0x290], eax
lea ecx, [ebp - 0x3e0]
push 0xe9
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.10007f90
mov dword [ebp - 0x28c], eax
push 0x101d8dfc
push eax
mov byte [ebp - 4], 9
call fcn.1000fad0
push esi
push dword [ebp - 0x28c]
call fcn.1000fad0
push 0x101d8e00
push dword [ebp - 0x28c]
call fcn.1000fad0
mov ecx, dword [ebp - 0x290]
add esp, 0x18
mov eax, dword [ecx]
push dword [ebp - 0x28c]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3e0]
call fcn.10008e90
mov edx, dword [ebp - 0x25c]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x10058482
mov ecx, dword [ebp - 0x270]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10058478
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058616
push edx
push ecx
call fcn.101799c0
add esp, 8
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0xf
mov byte [ebp - 0x270], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x100584db
mov ecx, dword [ebp - 0x288]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100584d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058616
push edx
push ecx
call fcn.101799c0
add esp, 8
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0xf
mov byte [ebp - 0x288], 0
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 0x294]
mov dword [ebp - 0x290], ecx
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x2ac], eax
cmp ecx, eax
je 0x1005856f
mov esi, dword [ebp - 0x2a8]
mov eax, ecx
sub eax, edi
mov edi, ecx
mov dword [ebp - 0x28c], eax
push edi
lea ecx, [esi - 8]
call fcn.100117f0
lea eax, [edi + 4]
push eax
lea ecx, [esi - 4]
call fcn.100117f0
mov eax, dword [ebp - 0x28c]
mov ecx, esi
add eax, esi
push eax
call fcn.100117f0
add edi, 0xc
add esi, 0xc
cmp edi, dword [ebp - 0x2ac]
jne 0x10058527
mov eax, dword [ebp - 0x298]
mov esi, dword [ebp - 0x29c]
mov edi, dword [ebp - 0x2a0]
mov eax, dword [eax + 0x48]
add eax, 0xfffffff4
push eax
push dword [ebp - 0x2a4]
call fcn.10054130
mov eax, dword [ebp - 0x298]
add esp, 8
add dword [eax + 0x48], 0xfffffff4
jmp 0x1005859d
add edi, 0xc
add dword [ebp - 0x294], 0xc
mov dword [ebp - 0x2a0], edi
or eax, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100585b8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x298]
cmp edi, dword [eax + 0x48]
je 0x100585ce
mov ecx, dword [ebp - 0x2b0]
jmp 0x10057f12
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [edx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [edx]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10009b10
call fcn.10190cce
int3