Function at 0x10003b40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x438], eax
push esi
mov esi, ecx
mov dword [ebp - 0x430], esi
test ebx, ebx
jne 0x10003b91
push 0x10202940
mov ecx, eax
call fcn.10002490
mov eax, dword [ebp - 0x438]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x208], 0
jne 0x10003bba
push ebx
mov ecx, eax
call fcn.10002490
mov eax, dword [ebp - 0x438]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x41c], eax
push edi
lea ebx, [ebx]
lea eax, [ebp - 0x43c]
mov ecx, esi
push eax
push ebx
call fcn.100043a0
mov dword [ebp - 0x434], eax
test eax, eax
je 0x100042d9
mov edi, eax
sub edi, ebx
sar edi, 1
call fcn.10002d70
push 2
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
je 0x1000432c
lea esi, [eax + 0x10]
xor ecx, ecx
lea eax, [edi + edi]
mov dword [esi - 0xc], edi
push eax
push ebx
push eax
push esi
mov word [eax + esi], cx
call fcn.10004510
add esp, 0x10
lea ecx, [ebp - 0x41c]
push dword [esi - 0xc]
push esi
call fcn.10002970
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10003c5b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x43c]
mov esi, dword [ebp - 0x434]
lea ebx, [esi + eax*2]
movzx eax, word [ebx]
test ax, ax
je 0x100042d6
cmp eax, 0x5c
je 0x10003ce7
cmp eax, 0x2f
je 0x10003ce7
mov edi, ebx
sub edi, esi
sar edi, 1
call fcn.10002d70
push 2
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
je 0x1000432c
lea esi, [eax + 0x10]
xor ecx, ecx
lea eax, [edi + edi]
mov dword [esi - 0xc], edi
push eax
push dword [ebp - 0x434]
mov word [eax + esi], cx
push eax
push esi
call fcn.10004510
add esp, 0x10
lea ecx, [ebp - 0x41c]
push dword [esi - 0xc]
push esi
call fcn.10002970
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100042c7
mov ecx, dword [esi]
push esi
jmp 0x100042c2
mov ecx, eax
lea esp, [esp]
cmp cx, 0x5c
je 0x10003cff
movzx edx, cx
cmp cx, 0x2f
jne 0x10003d0f
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
mov edx, eax
test ax, ax
jne 0x10003cf0
test dx, dx
je 0x100042d6
mov ecx, dword [ebp - 0x430]
push ebx
mov dword [ebp - 0x420], 0
call fcn.10004460
mov esi, eax
mov dword [ebp - 0x424], eax
sub esi, ebx
sar esi, 1
call fcn.10002d70
push 2
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
je 0x1000432c
lea edi, [eax + 0x10]
xor ecx, ecx
lea eax, [esi + esi]
mov dword [edi - 0xc], esi
push eax
push ebx
push eax
push edi
mov dword [ebp - 0x42c], edi
mov word [eax + edi], cx
call fcn.10004510
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, edi
add esp, 0x1c
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003d90
sub ecx, edx
sar ecx, 1
je 0x10003e1f
push edi
push dword [ebp - 0x430]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x10003e1f
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10003dcf
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1d
call fcn.10003680
add esp, 4
test eax, eax
je 0x10003de8
lea ecx, [ebp - 0x414]
push ecx
call eax
jmp 0x10003df5
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov dword [ebp - 0x418], eax
test esi, esi
je 0x10003e06
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x418], 0
je 0x10003e85
mov ebx, dword [ebp - 0x424]
mov dword [ebp - 0x420], 1
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push eax
push ebx
call fcn.100043a0
cmp dword [ebp - 0x420], 0
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], ebx
jne 0x100041f9
xor esi, esi
mov dword [ebp - 0x418], esi
movzx ecx, word [ebx]
test cx, cx
je case.0x10003e7e.9
test eax, eax
je 0x10003e6b
cmp ebx, eax
jae case.0x10003e7e.9
lea eax, [ecx - 9]
cmp eax, 0x53
ja case.0x10003e7e.11
movzx eax, byte [eax + 0x10004340]
jmp dword [eax*4 + 0x10004334]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10003e9b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f
call fcn.10003680
add esp, 4
test eax, eax
je 0x10003eb4
lea ecx, [ebp - 0x414]
push ecx
call eax
jmp 0x10003ec1
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x418], eax
test esi, esi
je 0x10003ed2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x418], 0
je 0x10003e1f
mov ebx, dword [ebp - 0x424]
mov eax, ebx
mov ecx, dword [ebp - 0x434]
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x444]
call fcn.100025f0
lea ecx, [ebp - 0x41c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10002970
mov edx, dword [ebp - 0x444]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10003f2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x100042b2
mov eax, 2
jmp 0x10003f42
mov eax, 3
cmp eax, 2
jne 0x100040c3
sar esi, 1
mov dword [ebp - 0x420], esi
call fcn.10002d70
push 2
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x440], eax
test eax, eax
je 0x1000432c
lea esi, [eax + 0x10]
xor ecx, ecx
mov eax, dword [ebp - 0x420]
mov dword [esi - 0xc], eax
add eax, eax
push eax
push dword [ebp - 0x424]
push eax
push esi
mov word [eax + esi], cx
call fcn.10004510
lea ecx, [edi - 0x10]
add esi, 0xfffffff0
add esp, 0x10
mov dword [ebp - 0x420], ecx
cmp esi, ecx
je 0x1000400b
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x10003fed
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x10003fed
push esi
call fcn.10002a60
add esp, 4
mov dword [ebp - 0x42c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x10003fe2
mov edi, dword [ebp - 0x420]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x42c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x42c], edi
jmp 0x1000400b
mov eax, dword [ebp - 0x440]
lea ecx, [ebp - 0x42c]
add eax, 0x10
push dword [eax - 0xc]
push eax
call fcn.10003740
mov edi, dword [ebp - 0x42c]
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10004020
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
jmp 0x10004040
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004040
sub eax, edx
sar eax, 1
je 0x100040c3
push edi
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x100040c3
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1000407f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1d
call fcn.10003680
add esp, 4
test eax, eax
je 0x10004098
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x100040a5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov dword [ebp - 0x420], eax
test esi, esi
je 0x100040b6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x420], 0
jne 0x100041f9
add dword [ebp - 0x418], 2
add ebx, 2
mov eax, dword [ebp - 0x428]
mov esi, dword [ebp - 0x418]
cmp ebx, eax
jne 0x10003e53
mov edx, dword [ebp - 0x424]
lea ecx, [ebp - 0x448]
mov eax, ebx
sub eax, edx
sar eax, 1
push eax
push edx
call fcn.100025f0
push eax
lea ecx, [ebp - 0x42c]
call fcn.10002790
mov edx, dword [ebp - 0x448]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10004124
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp - 0x42c]
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004145
sub ecx, edx
sar ecx, 1
je case.0x10003e7e.9
push edi
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je case.0x10003e7e.9
lea eax, [ebp - 0x20c]
push eax
call fcn.10002a00
test eax, eax
jne 0x100041f9
mov esi, ebx
sub esi, dword [ebp - 0x434]
sar esi, 1
mov dword [ebp - 0x428], esi
call fcn.10002d70
push 2
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
je 0x1000432c
lea esi, [eax + 0x10]
xor ecx, ecx
mov eax, dword [ebp - 0x428]
mov dword [esi - 0xc], eax
add eax, eax
push eax
push dword [ebp - 0x434]
push eax
push esi
mov word [eax + esi], cx
call fcn.10004510
add esp, 0x10
lea ecx, [ebp - 0x41c]
push dword [esi - 0xc]
push esi
call fcn.10002970
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100042af
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100042af
mov esi, dword [ebp - 0x41c]
mov eax, str._UserProfile_
sub eax, esi
mov dword [ebp - 0x420], str._UserProfile_
sar eax, 1
mov dword [ebp - 0x428], eax
mov eax, dword [esi - 0xc]
push 0xd
push str._UserProfile_
mov dword [ebp - 0x418], eax
call fcn.101e6fd0
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
add esp, 8
mov dword [ebp - 0x424], eax
add eax, dword [ebp - 0x418]
sub ecx, eax
or edx, ecx
jge 0x10004259
push eax
lea ecx, [ebp - 0x41c]
call fcn.10003310
mov ecx, dword [ebp - 0x428]
mov edx, dword [ebp - 0x418]
cmp ecx, edx
ja 0x10004278
mov eax, dword [ebp - 0x41c]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x424]
mov esi, dword [ebp - 0x41c]
add eax, eax
push eax
push dword [ebp - 0x420]
push eax
lea eax, [esi + edx*2]
push eax
call fcn.10004510
mov eax, dword [ebp - 0x418]
add esp, 0x10
add eax, dword [ebp - 0x424]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
or eax, 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100042c7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x100042e5
mov esi, dword [ebp - 0x430]
jmp 0x10003be0
push esi
jmp 0x100042da
push ebx
lea ecx, [ebp - 0x41c]
call fcn.10002800
mov esi, dword [ebp - 0x41c]
add esi, 0xfffffff0
push esi
call fcn.10002a60
mov ebx, dword [ebp - 0x438]
add eax, 0x10
add esp, 4
or edi, 0xffffffff
mov dword [ebx], eax
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
pop edi
jg 0x10004318
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
call fcn.10003970
lea ecx, [ecx]
jle 0x10004377
add byte [eax], dl
aas
add byte [eax], dl
cmp eax, 0x10003f
add byte [edx], al
add al, byte [eax]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add dword [edx], eax
add byte [edx], al
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add byte [edx], al
add al, byte [eax]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add byte [edx], al
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add ah, cl
int3