Function at 0x100575e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c7e0f
mov eax, dword fs:[0]
push eax
sub esp, 0x328
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 - 0x28c], edi
push 0x208
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 - 0x284]
push 1
push eax
call fcn.1016f450
add esp, 8
lea ecx, [ebp - 0x279]
mov dword [ebp - 4], 0
call fcn.100554f0
test eax, eax
je 0x10057e8d
mov ecx, dword [ebp - 0x284]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100576b6
test dx, dx
je 0x100576b2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100576b6
add ecx, 4
add eax, 4
test dx, dx
jne 0x10057690
xor eax, eax
jmp 0x100576bb
sbb eax, eax
or eax, 1
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10057883
lea ecx, [ebp - 0x279]
call fcn.10054290
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
test al, al
jne 0x10057883
lea ecx, [ebp - 0x279]
call fcn.10054450
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x1005771b
call fcn.10056750
jmp 0x1005788e
call fcn.10056210
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10057744
call fcn.10055a30
jmp 0x1005788e
call fcn.10055950
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x1005776d
call fcn.10055790
jmp 0x1005788e
call fcn.10054610
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10057796
call fcn.10055db0
jmp 0x1005788e
call fcn.10054530
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x100577bf
call fcn.10055cd0
jmp 0x1005788e
call fcn.10055170
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x100577e8
call fcn.10054990
jmp 0x1005788e
call fcn.10055250
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10057811
call fcn.10054c30
jmp 0x1005788e
call fcn.10055bf0
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x10057837
call fcn.100546f0
jmp 0x1005788e
call fcn.100547d0
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
lea ecx, [ebp - 0x279]
test al, al
je 0x1005785d
call fcn.10056910
jmp 0x1005788e
call fcn.10056830
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10011af0
add esp, 8
test al, al
je 0x10057898
lea ecx, [ebp - 0x279]
call fcn.10055870
jmp 0x1005788e
lea ecx, [ebp - 0x279]
call fcn.100548b0
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100578b8
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [edi + 0x24], 0
jne 0x100578cf
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x24], eax
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x10057e97
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
shr eax, 0x10
mov dword [ebp - 0x298], eax
test eax, eax
jne 0x1005791a
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x280]
push eax
call fcn.1000f350
jmp 0x10057945
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10057923
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x280]
call fcn.1000f6e0
mov eax, dword [edi]
lea ecx, [ebp - 0x280]
push ecx
mov ecx, edi
mov byte [ebp - 4], 2
call dword [eax + 0x1c]
mov edx, dword [ebp - 0x280]
or ebx, 0xffffffff
mov esi, eax
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1005797d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10057e45
mov eax, dword [ebp - 0x28c]
mov edi, dword [edi + 0x44]
cmp edi, dword [eax + 0x48]
je 0x10057e45
lea ebx, [edi + 4]
mov dword [ebp - 0x288], ebx
push 0x3e8
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10057e42
call fcn.1000ed90
test eax, eax
je 0x10057e8d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x280], eax
cmp dword [ebp - 0x298], 0
mov byte [ebp - 4], 3
jne 0x100579f7
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x280]
push eax
call fcn.1000f350
jmp 0x10057a22
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10057a00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x280]
call fcn.1000f6e0
mov edx, dword [ebp - 0x280]
mov ecx, 1
mov esi, dword [ebx]
mov byte [ebp - 4], 4
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x10057a58
push 0x104
lea ecx, [ebp - 0x280]
call fcn.1000f500
mov edx, dword [ebp - 0x280]
cmp dword [edx - 8], 0x104
jl 0x10057e83
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x280]
push esi
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x280]
push dword [eax - 8]
push eax
call fcn.101952b4
mov edx, eax
add esp, 8
test edx, edx
js 0x10057e83
mov ecx, dword [ebp - 0x280]
cmp edx, dword [ecx - 8]
jg 0x10057e83
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x280]
mov word [eax + edx*2], cx
lea ecx, [ebp - 0x279]
call fcn.1000e8c0
mov eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x279]
mov byte [ebp - 4], 5
push dword [eax + 0x24]
lea eax, [ebp - 0x280]
push 0x7530
push eax
lea eax, [ebx + 4]
push eax
push edi
lea eax, [ebp - 0x230]
push eax
call fcn.1005c050
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x230]
mov ebx, dword [ebp - 0x230]
mov eax, 4
mov esi, dword [ebp - 0x220]
cmovae ecx, ebx
cmp esi, 4
mov byte [ebp - 4], 6
mov edx, str.succ
cmova esi, eax
sub esi, eax
jb 0x10057b41
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10057b46
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10057b30
cmp esi, 0xfffffffc
je 0x10057b7a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10057b73
cmp esi, 0xfffffffd
je 0x10057b7a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10057b73
cmp esi, 0xfffffffe
je 0x10057b7a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10057b73
cmp esi, 0xffffffff
je 0x10057b7a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10057b7a
sbb eax, eax
or eax, 1
jmp 0x10057b7c
xor eax, eax
test eax, eax
jne 0x10057b8f
cmp dword [ebp - 0x220], 4
jb 0x10057b8f
jbe 0x10057d9f
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x10057e8d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push 0xfde9
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 7
push eax
call fcn.100aaf90
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x10057be5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x294]
call fcn.10010980
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xa
call fcn.10008970
mov eax, dword [ebp - 0x288]
push dword [eax]
lea eax, [ebp - 0x290]
push dword [ebp - 0x294]
push str.ex_ary_result__sex_ary_filename__s
push eax
call fcn.100132f0
mov esi, dword [ebp - 0x290]
add esp, 0x10
push 0
push 0
push 1
push esi
push str.basic_update_err
call fcn.10058650
mov ecx, eax
call fcn.10182890
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 0x10057d5a
push 0x14
push str.ConfigConfigMgr.cpp
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000cf00
mov byte [ebp - 4], 0xc
call fcn.100a97a0
mov dword [ebp - 0x29c], eax
lea ecx, [ebp - 0x334]
push 0x151
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10007f90
mov ebx, eax
push str.error_DownloadLua:
push ebx
mov byte [ebp - 4], 0xd
call fcn.1000fad0
mov eax, dword [ebp - 0x288]
mov edx, 0x101d2100
mov ecx, dword [eax]
test ecx, ecx
cmovne edx, ecx
push edx
push ebx
call fcn.1000fad0
push str.Url:
push ebx
call fcn.1000fad0
mov eax, dword [edi]
mov ecx, 0x101d2100
test eax, eax
cmovne ecx, eax
push ecx
push ebx
call fcn.1000fad0
mov ecx, dword [ebp - 0x29c]
add esp, 0x20
mov eax, dword [ecx]
push ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x334]
call fcn.10008e90
lea ecx, [ebp - 0x248]
call fcn.10007310
lea ecx, [ebp - 0x260]
call fcn.10007310
mov edx, dword [ebp - 0x294]
or ebx, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10057d7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10057d99
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x10057dd9
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x10057dcf
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057ea1
push ecx
push ebx
call fcn.101799c0
add esp, 8
lea ecx, [ebp - 0x279]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1000ca60
mov edx, dword [ebp - 0x280]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10057e21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28c]
add edi, 0xc
mov ebx, dword [ebp - 0x288]
add ebx, 0xc
mov dword [ebp - 0x288], ebx
cmp edi, dword [eax + 0x48]
jne 0x100579a0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x284]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10057e67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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.101799ce
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10009b10
push 0x80004005
call fcn.10009b10
push 0x80004005
call fcn.10009b10
call fcn.10190cce
int3