Function at 0x100082e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov ebx, dword [ebp + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 8], esi
test ebx, ebx
je 0x10008333
push 5
push 0x10202b9c
push ebx
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x1000832d
add ebx, 0xa
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x10008325
cmp eax, 0x2f
jne 0x1000832a
add ebx, 2
jmp 0x10008318
mov dword [ebp + 0xc], ebx
cmp word [ebx], 0
jne 0x10008370
mov ecx, dword [ebp + 0x10]
call fcn.10008c80
add esi, 0xfffffff0
push esi
call fcn.10002a60
mov ebx, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10008c71
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10008375
sub edx, ecx
lea ecx, [ebp - 4]
push edi
sar edx, 1
push ebx
mov dword [ebp - 0x40], edx
call fcn.10002490
push str._r_n_t__
lea ecx, [ebp - 4]
call fcn.1000a0a0
lea ecx, [ebp - 4]
call fcn.1000a1f0
mov edi, dword [ebp - 4]
mov edx, dword [edi - 0xc]
test edx, edx
jne 0x10008408
mov ecx, dword [ebp + 0x10]
call fcn.10008c80
add esi, 0xfffffff0
push esi
call fcn.10002a60
mov ebx, dword [ebp + 8]
add eax, 0x10
or ecx, 0xffffffff
add esp, 4
add edi, 0xfffffff0
mov dword [ebx], eax
mov eax, ecx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100083e9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10008c70
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
inc edx
mov ecx, eax
mov dword [ebp - 0xc], eax
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x1000842b
push edx
lea ecx, [ebp - 4]
call fcn.10003310
mov edi, dword [ebp - 4]
xor eax, eax
or ebx, 0xffffffff
cmp word [edi], 0x22
mov dword [ebp - 0x18], eax
jne 0x100084bf
lea esi, [edi + 2]
push 0x22
push esi
call sub.msvcrt.dll_wcschr
add esp, 8
test eax, eax
je 0x10008a03
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x5c
push esi
mov dword [ebp - 0x18], eax
call sub.msvcrt.dll_wcschr
add esp, 8
push esi
test eax, eax
jne 0x100084aa
lea eax, [ebp - 0x2c]
push eax
call fcn.10009d30
add esp, 8
lea ecx, [ebp - 8]
push eax
call fcn.10002790
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100084b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 8]
xor eax, eax
cmp dword [esi - 0xc], eax
jmp 0x100088b4
lea ecx, [ebp - 8]
call fcn.10008170
mov esi, dword [ebp - 8]
xor eax, eax
cmp dword [esi - 0xc], eax
jmp 0x100088b4
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [edi - 0xc]
lea ecx, [edi + eax*2]
mov dword [ebp - 0x28], ecx
cmp ecx, edi
jb 0x100087bf
mov si, word [ebp + 0x14]
jmp 0x100084e0
mov eax, dword [edi - 0xc]
lea edx, [edi + eax*2]
movzx eax, word [ecx]
mov dword [ebp - 0x3c], edx
cmp ax, si
jne 0x100084f7
cmp bx, 0x5c
jne 0x100084ff
cmp ecx, edx
jne 0x1000879b
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ecx
cmp ecx, edx
jne 0x1000850e
mov dword [ebp - 0x18], ecx
jmp 0x10008514
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
je 0x1000851b
xor eax, eax
mov word [ecx], ax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10008531
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x10008544
call eax
jmp 0x1000854a
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
test esi, esi
je 0x10008557
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x1000885f
push edi
lea ecx, [ebp - 0x10]
call fcn.10002490
mov edi, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [edi - 0xc]
mov esi, edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
lea ebx, [esi + eax*2]
cmp esi, ebx
jae 0x10008722
mov edi, dword [ebp - 0x14]
lea ebx, [ebx]
push 0x10202cd8
push esi
call sub.msvcrt.dll_wcsstr
add esp, 8
test eax, eax
je 0x100085bb
lea esi, [eax + 4]
inc edi
push 0x10202cd8
push esi
call sub.msvcrt.dll_wcsstr
add esp, 8
test eax, eax
jne 0x100085a2
mov dword [ebp - 0x14], edi
test esi, esi
je 0x100085d5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100085c4
sub ecx, edx
sar ecx, 1
jmp 0x100085d7
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, ebx
jb 0x10008590
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
test eax, eax
jle 0x10008713
mov esi, dword [edi - 0xc]
mov ecx, esi
sub ecx, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x38], ecx
mov edx, ecx
cmp ecx, esi
jg 0x10008604
mov edx, esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x1000861f
push edx
lea ecx, [ebp - 0x10]
call fcn.10003310
mov edi, dword [ebp - 0x10]
mov ebx, edi
lea eax, [ebx + esi*2]
mov dword [ebp - 0x34], eax
cmp ebx, eax
jae 0x10008702
nop
push 0x10202cd8
push ebx
call sub.msvcrt.dll_wcsstr
mov esi, eax
add esp, 8
test esi, esi
je 0x100086cf
mov eax, dword [ebp - 0x1c]
lea ebx, [esi + 2]
mov ecx, esi
sub ecx, edi
sar ecx, 1
sub eax, ecx
sub eax, 2
mov dword [ebp - 0x30], eax
lea ecx, [eax + eax]
lea eax, [esi + 4]
test ecx, ecx
je 0x1000868b
test ebx, ebx
jne 0x1000867c
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.101e6c20
jmp 0x1000868b
test eax, eax
je 0x1000866a
push ecx
push eax
push ebx
call sub.msvcrt.dll_memmove
add esp, 0xc
test esi, esi
jne 0x100086a1
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.101e6c20
jmp 0x100086aa
mov ax, word [0x10202944]
mov word [esi], ax
mov eax, dword [ebp - 0x30]
xor ecx, ecx
dec dword [ebp - 0x1c]
push 0x10202cd8
push ebx
mov word [esi + eax*2 + 2], cx
call sub.msvcrt.dll_wcsstr
mov esi, eax
add esp, 8
test esi, esi
jne 0x10008648
test ebx, ebx
je 0x100086f1
mov eax, ebx
lea edx, [eax + 2]
jmp 0x100086e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100086e0
sub eax, edx
sar eax, 1
jmp 0x100086f3
xor eax, eax
lea ebx, [ebx + eax*2]
add ebx, 2
cmp ebx, dword [ebp - 0x34]
jb 0x10008630
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000871f
mov ecx, 1
jmp 0x1000856d
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1000876a
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1000873c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x1000874f
call eax
jmp 0x10008755
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
test esi, esi
je 0x10008762
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x1000881e
or ebx, 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10008784
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x28]
mov si, word [ebp + 0x14]
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x3c]
je 0x100087a2
mov word [ecx], si
jmp 0x100087a2
cmp ax, si
je 0x100087a2
mov ebx, eax
sub ecx, 2
mov dword [ebp - 0x28], ecx
cmp ecx, edi
jae 0x100084e0
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 8]
test eax, eax
je 0x100087bf
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.10009d30
lea ebx, [esi - 0x10]
add esp, 8
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x10008891
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x10008882
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x10008882
push edx
call fcn.10002a60
add esp, 4
mov dword [ebp - 0x3c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x10008816
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3c]
lea esi, [eax + 0x10]
mov dword [ebp - 8], esi
jmp 0x10008891
mov eax, dword [ebp - 4]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10008826
sub edx, esi
lea ecx, [ebp - 8]
sar edx, 1
push edx
push eax
call fcn.10003740
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10008857
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
jmp 0x100088bf
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008864
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 8]
call fcn.10003740
mov esi, dword [ebp - 8]
jmp 0x100088bf
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 8]
call fcn.10003740
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0x38]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100088ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp dword [esi - 0xc], eax
mov esi, dword [ebp - 8]
setne al
test eax, eax
je 0x10008a06
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x100088ca
xor ecx, ecx
jmp 0x100088df
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100088d0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.10003740
mov ebx, dword [ebx]
mov dword [ebp - 0x10], ebx
movzx eax, word [ebx]
push eax
call sub.msvcrt.dll_iswspace
add esp, 4
test eax, eax
je 0x10008917
movzx eax, word [ebx + 2]
add ebx, 2
push eax
call sub.msvcrt.dll_iswspace
add esp, 4
test eax, eax
jne 0x10008900
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebx]
mov dword [ebp - 0x2c], ebx
cmp eax, ebx
je 0x1000898c
mov ecx, dword [ebp - 0xc]
sub eax, ebx
mov edx, dword [ebx - 0xc]
sub ecx, dword [ebx - 4]
sar eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebx - 8]
sub eax, edx
or ecx, eax
jge 0x1000894f
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push edx
call fcn.10003310
mov ebx, dword [ebx]
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ebx - 0xc]
mov ebx, ecx
sub ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [ebx*2 + 2]
push eax
mov eax, dword [ebp - 0x10]
lea eax, [edx + eax*2]
push eax
lea eax, [ecx*2 + 2]
push eax
push edx
call fcn.10007350
mov ecx, dword [ebp + 0x10]
add esp, 0x10
xor edx, edx
mov eax, dword [ecx]
mov dword [eax - 0xc], ebx
mov eax, dword [ecx]
mov word [eax + ebx*2], dx
mov ebx, dword [ecx]
movzx eax, word [ebx]
test ax, ax
je 0x10008a06
mov ecx, eax
xor edi, edi
push ecx
call sub.msvcrt.dll_iswspace
add esp, 4
test eax, eax
je 0x100089ad
test edi, edi
jne 0x100089af
mov edi, ebx
jmp 0x100089af
xor edi, edi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x10008998
mov dword [ebp - 0x1c], edi
test edi, edi
mov edi, dword [ebp - 4]
je 0x10008a06
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [edx]
sub ebx, ecx
sar ebx, 1
sub eax, dword [ecx - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx - 8]
sub eax, ebx
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jge 0x100089f6
push ebx
mov ecx, edx
call fcn.10003310
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
mov dword [ecx - 0xc], ebx
xor ecx, ecx
mov eax, dword [edx]
mov word [eax + ebx*2], cx
jmp 0x10008a06
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
jne 0x10008bcb
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x10008a20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008a20
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 4]
call fcn.10003740
push str._r_n_t__
lea ecx, [ebp - 4]
call fcn.1000a0a0
lea ecx, [ebp - 4]
call fcn.1000a1f0
cmp word [ebp + 0x14], 0x20
mov edi, dword [ebp - 4]
jne 0x10008ac5
cmp dword [edi - 0xc], 0
jle 0x10008ac5
push 0x2c
push edi
call sub.msvcrt.dll_wcschr
add esp, 8
test eax, eax
je 0x10008ac5
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10008ac5
push 0x2c
push dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.100082e0
add esp, 0x10
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10008aa0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10008c70
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [edi], 0x22
jne 0x10008b1c
add edi, 2
jne 0x10008ad4
xor ecx, ecx
jmp 0x10008aef
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008ae0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 4]
call fcn.10003740
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
jle 0x10008b1c
push 0x22
push edi
call sub.msvcrt.dll_wcschr
mov esi, eax
add esp, 8
test esi, esi
je 0x10008b1c
sub esi, edi
sar esi, 1
cmp esi, 0xffffffff
jne 0x10008b39
push 0x10202ce0
push edi
call sub.msvcrt.dll_wcspbrk
mov esi, eax
add esp, 8
test esi, esi
je 0x10008bac
sub esi, edi
sar esi, 1
cmp esi, 0xffffffff
je 0x10008bac
push esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
call fcn.10009ca0
push eax
lea ecx, [ebp - 8]
call fcn.10002790
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008b6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi - 0xc]
lea ecx, [ebp - 4]
sub eax, esi
dec eax
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.1000a000
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push eax
call fcn.10002790
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008ba3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.1000a160
jmp 0x10008bce
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
call fcn.10002790
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push 0
push 0x10202940
call fcn.10003740
jmp 0x10008bce
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 8]
call fcn.1000a160
lea ecx, [ebp - 8]
call fcn.1000a1f0
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x40]
cmp dword [eax - 0xc], ecx
jl 0x10008c2c
cmp dword [eax - 0xc], 0
lea edx, [eax - 0x10]
mov esi, dword [edx]
je 0x10008c2c
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x10008c0c
mov dword [eax - 0xc], 0
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax], cx
jmp 0x10008c2c
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10008c20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov esi, dword [ebp - 8]
add esi, 0xfffffff0
push esi
call fcn.10002a60
mov ebx, dword [ebp + 8]
add eax, 0x10
add esp, 4
add edi, 0xfffffff0
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10008c5b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10008c70
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret