Function at 0x1017b190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x2c8], ecx
mov dword [ebp - 0x2c0], esi
mov dword [ebp - 0x2cc], ebx
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, 0x1025b480
push 1
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2bc]
push ebx
push eax
call fcn.10002ad0
push dword [eax]
lea eax, [ebp - 0x2d4]
push dword [esi + 4]
push str.Type:R2name:_sexc:_s
push eax
call fcn.10002cb0
mov edx, dword [ebp - 0x2bc]
add esp, 0x10
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017b21e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x25c], 0
push eax
push 0x10202940
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
call fcn.100070c0
xor eax, eax
mov dword [ebp - 0x244], 0
push eax
push 0x10202940
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
call fcn.100070c0
mov edi, dword [ebp - 0x2d4]
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1017b2a2
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x23c]
call fcn.100070c0
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1017b2e3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x224]
call fcn.100070c0
mov ecx, dword [ebp - 0x2c8]
mov esi, dword [ecx + 0xc0]
mov dword [ebp - 0x2bc], esi
mov ebx, dword [esi + 4]
cmp byte [ebx + 0xd], 0
jne 0x1017b367
lea ebx, [ebx]
cmp dword [ebp - 0x210], 8
lea edx, [ebp - 0x224]
jb 0x1017b335
mov edx, dword [ebp - 0x224]
cmp dword [ebx + 0x24], 8
lea ecx, [ebx + 0x10]
jb 0x1017b341
mov ecx, dword [ebx + 0x10]
push dword [ebp - 0x214]
push edx
push dword [ebx + 0x20]
push ecx
call fcn.1001fdf0
add esp, 0x10
test eax, eax
jns 0x1017b35d
mov ebx, dword [ebx + 8]
jmp 0x1017b361
mov esi, ebx
mov ebx, dword [ebx]
cmp byte [ebx + 0xd], 0
je 0x1017b320
cmp esi, dword [ebp - 0x2bc]
je 0x1017b3a7
cmp dword [esi + 0x24], 8
lea edx, [esi + 0x10]
jb 0x1017b37b
mov edx, dword [esi + 0x10]
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x224]
jb 0x1017b390
mov ecx, dword [ebp - 0x224]
push dword [esi + 0x20]
push edx
push dword [ebp - 0x214]
push ecx
call fcn.1001fdf0
add esp, 0x10
test eax, eax
jns 0x1017b3f5
mov ebx, dword [ebp - 0x2c8]
lea eax, [ebp - 0x224]
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2d5]
push eax
lea eax, [ebp - 0x2bc]
push eax
push 0x1021b66c
lea ecx, [ebx + 0xc0]
call fcn.100a4e90
push eax
add eax, 0x10
lea ecx, [ebx + 0xc0]
push eax
push esi
lea eax, [ebp - 0x2bc]
push eax
call fcn.100a5940
mov esi, dword [ebp - 0x2bc]
push 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x2b8]
lea ebx, [esi + 0x28]
call fcn.100a6630
mov esi, eax
cmp ebx, esi
je 0x1017b45a
mov ecx, ebx
call fcn.1000c070
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea eax, [esi + 0x18]
lea ecx, [ebx + 0x18]
cmp ecx, eax
je 0x1017b49f
call fcn.1000c070
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x2c], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
lea eax, [esi + 0x30]
lea ecx, [ebx + 0x30]
cmp ecx, eax
je 0x1017b4e4
call fcn.1000c070
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x44], eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], 0
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x48], eax
mov edx, dword [ebp - 0x210]
cmp edx, 8
jb 0x1017b52a
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1017b520
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1017bc31
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
xor eax, eax
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.10021420
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x1017b592
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1017b588
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1017bc31
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov edx, dword [ebp - 0x240]
xor eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
cmp edx, 8
jb 0x1017b5ef
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1017b5e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1017bc31
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov edx, dword [ebp - 0x258]
xor eax, eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
cmp edx, 8
jb 0x1017b64c
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1017b642
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1017bc31
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x2c4]
push dword [ebp - 0x2cc]
mov dword [eax + 0xbc], 0
call fcn.10002490
mov esi, dword [ebp - 0x2c4]
mov ecx, 1
mov eax, dword [esi - 8]
mov ebx, dword [esi - 0xc]
sub eax, ebx
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x1017b699
push ebx
lea ecx, [ebp - 0x2c4]
call fcn.10003310
mov esi, dword [ebp - 0x2c4]
lea eax, [ebx + 1]
push eax
push esi
call fcn.101e7180
add esp, 8
mov dword [esi - 0xc], ebx
xor eax, eax
lea ecx, [ebp - 0x2c4]
mov word [esi + ebx*2], ax
push 0x10202940
push str.res:__
call fcn.10003450
push 0x10202940
push str.file:__
lea ecx, [ebp - 0x2c4]
call fcn.10003450
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 0x2c4]
lea ecx, [ebp - 0x20c]
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1017b724
movzx eax, word [ecx + esi]
test ax, ax
je 0x1017b724
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1017b704
jmp 0x1017b728
test edx, edx
jne 0x1017b72b
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017b753
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f
call fcn.10003680
add esp, 4
test eax, eax
je 0x1017b76c
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x1017b779
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
test esi, esi
je 0x1017b786
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
mov ebx, dword [ebp - 0x2c0]
je 0x1017b7a3
mov ecx, dword [ebp - 0x2c8]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.101293f0
mov eax, dword [ebp - 0x2c8]
cmp dword [eax + 0xbc], 0
jne 0x1017bbe9
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push dword [ebx + 4]
lea edi, [ebx + 4]
add eax, 0x10
push str.SOFTWAREMicrosoftInternet_ExplorerMenuExt
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2c0]
push 0x102040c0
push eax
call fcn.10002cb0
add esp, 0x10
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
push 0x20019
push 0xffffffffffffffff
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1017b841
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
mov eax, dword [ebp - 0x2c0]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x2ec], eax
call fcn.10002a60
add esp, 4
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
push dword [ebx]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.100da240
add esp, 0x1c
push 1
push 0
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1017b8af
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1017b8e7
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1017b919
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1017b94b
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x2bc]
push 0x274b
mov dword [ebp - 0x2bc], eax
call fcn.10023e80
test al, al
jne 0x1017b9a0
mov ecx, 0x274b
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1017b980
sub ecx, edx
sar ecx, 1
push ecx
push 0x274b
lea ecx, [ebp - 0x2bc]
call fcn.10003740
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x2c0]
push 0x2807
mov dword [ebp - 0x2c0], eax
call fcn.10023e80
test al, al
jne 0x1017b9f1
mov ecx, 0x2807
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1017b9d1
sub ecx, edx
sar ecx, 1
push ecx
push 0x2807
lea ecx, [ebp - 0x2c0]
call fcn.10003740
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x2cc]
push 0x10202940
mov dword [ebp - 0x2cc], eax
call fcn.10023e80
test al, al
jne 0x1017ba2c
push 0
push 0x10202940
lea ecx, [ebp - 0x2cc]
call fcn.10003740
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x2e4]
push 0x286a
push eax
call fcn.100053d0
add esp, 0xc
mov ebx, dword [eax]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x2d0]
push 0x10202940
mov dword [ebp - 0x2d0], eax
call fcn.10023e80
test al, al
jne 0x1017ba84
push 0
push 0x10202940
lea ecx, [ebp - 0x2d0]
call fcn.10003740
push edi
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x2e0]
push 0x2743
push eax
call fcn.100053d0
add esp, 0xc
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.10007e90
mov edi, dword [ebp - 0x2bc]
lea ecx, [ebp - 0x218]
mov esi, dword [ebp - 0x2c0]
add esp, 0xc
push 0
push 0xffffffffffffffff
push 2
push ecx
mov ecx, dword [ebp - 0x2c8]
push 0
push 1
push edi
push esi
push ebx
push dword [eax]
call fcn.100cd930
mov edx, dword [ebp - 0x2dc]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017bafd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2e0]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017bb1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2d0]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017bb37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2e4]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017bb54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2cc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017bb71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1017bb88
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1017bb9f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2e8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017bbbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x218]
call fcn.1002a3c0
mov edx, dword [ebp - 0x2ec]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017bbe1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2d4]
jmp 0x1017bbec
or ebx, 0xffffffff
mov edx, dword [ebp - 0x2c4]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017bc09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1017bc1e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
call fcn.101e6c40
int3