Function at 0x10157210
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x42c]
push edi
push eax
call fcn.101cb340
mov esi, eax
add esp, 4
mov ecx, dword [esi]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x1015724b
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10157261
call fcn.10003980
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10157d5b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
mov eax, dword [esi]
push 0xc
push str.antiadwa.dll
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.100258c0
mov esi, dword [ebp - 0x418]
push esi
call fcn.1001d810
add esp, 0x18
push esi
test eax, eax
jne 0x101572b8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x101572be
push 1
push 0x1024d040
push esi
call fcn.10035520
add esp, 0xc
jmp 0x101572be
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101572d8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x42c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101572f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_5
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x10157338
push 6
push str.init_5
lea ecx, [ebp - 0x418]
call fcn.10004050
mov esi, dword [ebp - 0x418]
add esi, 0xfffffff0
push esi
call fcn.10004ba0
add esp, 4
add eax, 0x10
mov dword [ebp - 0x424], eax
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x420]
push str.EXMN
mov dword [ebp - 0x420], eax
call fcn.10004a70
test al, al
jne 0x10157396
push 4
push str.EXMN
lea ecx, [ebp - 0x420]
call fcn.10004050
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x41c], 0
call ebx
mov dword [ebp - 0x428], eax
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101573c2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call ebx
add esi, eax
push esi
call fcn.10213601
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.102134e7
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
add esp, 0x18
push str.360base.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
test eax, eax
jne 0x10157443
lea eax, [ebp - 0x20c]
push eax
push dword [0x10256b30]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360base.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x10157451
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.10150040
add esp, 4
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_6
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x101574a3
push 6
push str.init_6
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101574e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str...360util.dll
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call fcn.10156990
add esp, 4
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_7
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x10157550
push 6
push str.init_7
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10157592
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10151b50
call fcn.1003be40
mov eax, dword [eax + 0x140]
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_8
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x101575e5
push 6
push str.init_8
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10157627
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.101ccfa0
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_9
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x1015766f
push 6
push str.init_9
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101576b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.101d0b20
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_10
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x101576f9
push 7
push str.init_10
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015773b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.101ca8c0
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_11
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x10157783
push 7
push str.init_11
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101577c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.101528c0
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_12
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x1015780d
push 7
push str.init_12
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015784f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10152750
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_13
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x10157897
push 7
push str.init_13
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101578d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.100286f0
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_14
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x10157921
push 7
push str.init_14
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10157963
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x1025a3a8
call fcn.10004e90
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_15
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x101579b0
push 7
push str.init_15
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101579f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x42c]
push eax
call fcn.10154f40
mov eax, dword [ebp - 0x42c]
mov esi, esp
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x42c], eax
call fcn.10004ba0
add esp, 4
add eax, 0x10
mov ecx, 0x10259b48
mov dword [esi], eax
call fcn.10156520
mov ecx, dword [0x1025a35c]
test ecx, ecx
je 0x10157a3c
mov eax, dword [ecx]
push 0x10259b48
push ecx
call dword [eax + 0xc]
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_16
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x10157a7f
push 7
push str.init_16
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10157ac1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1016c290
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_17
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x10157b09
push 7
push str.init_17
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10157b4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1002d820
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_18
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x10157b93
push 7
push str.init_18
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10157bd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_19
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x10157c18
push 7
push str.init_19
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10157c5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1007f750
mov ecx, eax
call fcn.1007fc90
call fcn.10003980
test eax, eax
je 0x10157d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push str.init_20
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x10157ca9
push 7
push str.init_20
lea ecx, [ebp - 0x418]
call fcn.10004050
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x424]
call fcn.10004870
call ebx
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10157ceb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x428]
call fcn.1005a9b0
mov edx, dword [ebp - 0x42c]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10157d10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10157d2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10157d48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100030c0
int3