Function at 0x446330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a11b2
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x4c9614]
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 ebx, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x440], edi
cmp ebx, edi
jne 0x446387
push esi
mov ecx, 0x4aa7ac
call fcn.00403ba0
mov eax, esi
jmp 0x4469a8
call fcn.00445ed0
cmp dword [0x4d0938], edi
jne 0x4463a3
push esi
mov ecx, ebx
call fcn.00403ba0
mov eax, esi
jmp 0x4469a8
mov eax, dword [0x4cdb0c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4cdb0c
call edx
add eax, 0x10
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], edi
mov edi, edi
push 0x4d0730
push ebx
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov edi, eax
mov eax, dword [0x4d0938]
mov dword [ebp - 0x424], eax
mov eax, dword [0x4d0b44]
mov dword [ebp - 0x42c], edi
test eax, eax
je 0x4463fd
push 0x4d093c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov esi, eax
mov eax, dword [0x4d0b44]
test edi, edi
jne 0x44640b
mov edi, esi
mov dword [ebp - 0x42c], edi
jmp 0x44641b
test esi, esi
je 0x446421
cmp esi, edi
jae 0x446421
mov edi, esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], eax
test edi, edi
je 0x4469c6
mov edx, dword [0x4cdb0c]
mov eax, dword [edx]
sub edi, ebx
push 2
sar edi, 1
push edi
mov ecx, 0x4cdb0c
call eax
test eax, eax
je 0x4469d5
lea esi, [eax + 0x10]
mov dword [esi - 0xc], edi
add edi, edi
push edi
push ebx
xor ecx, ecx
push edi
push esi
mov dword [ebp - 0x430], esi
mov word [edi + esi], cx
call fcn.0047e6fa
add esp, 0x10
mov byte [ebp - 4], 1
mov eax, dword [esi - 0xc]
push eax
push esi
lea edi, [ebp - 0x428]
call fcn.0040bd30
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x44649b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov edx, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x424]
movzx eax, word [edx + ecx*2]
lea ebx, [edx + ecx*2]
test ax, ax
je 0x4469c8
cmp ax, 0x5c
je 0x44653c
cmp ax, 0x2f
je 0x446530
mov edi, ebx
sub edi, edx
mov edx, dword [0x4cdb0c]
mov eax, dword [edx]
push 2
sar edi, 1
push edi
mov ecx, 0x4cdb0c
call eax
test eax, eax
je 0x4469d5
mov edx, dword [ebp - 0x42c]
lea esi, [eax + 0x10]
lea eax, [edi + edi]
push eax
push edx
push eax
xor ecx, ecx
mov dword [esi - 0xc], edi
push esi
mov dword [ebp - 0x430], esi
mov word [eax + esi], cx
call fcn.0047e6fa
add esp, 0x10
mov byte [ebp - 4], 2
mov eax, dword [esi - 0xc]
push eax
push esi
lea edi, [ebp - 0x428]
call fcn.0040bd30
mov byte [ebp - 4], 0
lea eax, [esi - 0x10]
jmp 0x44694a
cmp ax, 0x5c
je 0x44653c
cmp ax, 0x2f
jne 0x446558
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x446530
lea eax, [ebp - 0x428]
call fcn.0040aff0
jmp 0x44696b
cmp word [ebx], 0
je 0x4469c8
mov eax, ebx
mov dword [ebp - 0x438], 0
call fcn.00446040
mov edx, dword [0x4cdb0c]
mov esi, eax
sub esi, ebx
push 2
mov dword [ebp - 0x424], eax
mov eax, dword [edx]
sar esi, 1
push esi
mov ecx, 0x4cdb0c
call eax
test eax, eax
je 0x4469d5
lea edi, [eax + 0x10]
mov dword [edi - 0xc], esi
add esi, esi
push esi
push ebx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0x430], edi
mov word [esi + edi], cx
call fcn.0047e6fa
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x41e]
mov byte [ebp - 4], 3
push eax
mov word [ebp - 0x420], dx
call fcn.004845b0
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4465e0
sub eax, edx
sar eax, 1
je 0x44662d
push edi
push 0x4d0730
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x44662d
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x44669b
mov ebx, dword [ebp - 0x424]
mov dword [ebp - 0x438], 1
lea ecx, [ebp - 0x434]
push ecx
mov edi, ebx
call fcn.00445fe0
cmp dword [ebp - 0x438], 0
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x434], ebx
jne 0x446874
mov dword [ebp - 0x424], 0
mov edi, edi
movzx eax, word [ebx]
test ax, ax
je case.0x446694.9
mov ecx, dword [ebp - 0x444]
test ecx, ecx
je 0x44667e
cmp ebx, ecx
jae case.0x446694.9
movzx eax, ax
add eax, 0xfffffff7
cmp eax, 0x53
ja case.0x446694.11
movzx edx, byte [eax + 0x4469e8]
jmp dword [edx*4 + 0x4469dc]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44662d
mov ebx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x42c]
mov edi, ebx
sub edi, eax
sar edi, 1
push eax
lea esi, [ebp - 0x44c]
call fcn.0040afa0
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edi, [ebp - 0x428]
call fcn.0040bd30
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
jmp 0x446924
mov edi, dword [ebp - 0x424]
mov eax, dword [0x4cdb0c]
mov edx, dword [eax]
push 2
sar edi, 1
push edi
mov ecx, 0x4cdb0c
call edx
test eax, eax
je 0x4469d5
mov edx, dword [ebp - 0x434]
lea esi, [eax + 0x10]
lea eax, [edi + edi]
push eax
push edx
push eax
xor ecx, ecx
mov dword [esi - 0xc], edi
push esi
mov word [esi + eax], cx
call fcn.0047e6fa
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004845b0
mov eax, esi
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x446760
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x446760
sub eax, edx
sar eax, 1
je 0x44679d
push esi
push 0x4d0730
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x44679d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x44688b
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x446694.11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [ebp - 0x424], 2
add ebx, 2
cmp ebx, dword [ebp - 0x444]
jne 0x446660
mov eax, dword [ebp - 0x434]
mov edi, ebx
sub edi, eax
sar edi, 1
push eax
lea esi, [ebp - 0x440]
call fcn.0040afa0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004845b0
mov esi, dword [ebp - 0x440]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x446810
sub eax, edx
sar eax, 1
je 0x44684e
push esi
push 0x4d0730
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x44684e
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov edi, 1
test eax, eax
jne 0x446854
mov edi, dword [ebp - 0x438]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x446870
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je case.0x446694.9
push 0xd
push str._UserProfile_
lea edi, [ebp - 0x428]
call fcn.0040bd30
jmp 0x44693d
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446874
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xd
push str._UserProfile_
lea edi, [ebp - 0x428]
call fcn.0040bd30
jmp 0x44693d
mov edx, dword [0x4cdb0c]
mov eax, dword [edx]
mov edi, ebx
sub edi, dword [ebp - 0x42c]
push 2
sar edi, 1
push edi
mov ecx, 0x4cdb0c
call eax
test eax, eax
je 0x4469d5
mov edx, dword [ebp - 0x42c]
lea esi, [eax + 0x10]
lea eax, [edi + edi]
push eax
push edx
push eax
xor ecx, ecx
mov dword [esi - 0xc], edi
push esi
mov dword [ebp - 0x43c], esi
mov word [eax + esi], cx
call fcn.0047e6fa
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [esi - 0xc]
push eax
push esi
lea edi, [ebp - 0x428]
call fcn.0040bd30
mov byte [ebp - 4], 3
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44693d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446963
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x4463c0
mov esi, dword [ebp - 0x428]
add esi, 0xfffffff0
mov eax, esi
call fcn.00403850
mov edi, dword [ebp - 0x448]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4469a6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
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.0047e6eb
mov esp, ebp
pop ebp
ret 4
mov edx, ebx
lea eax, [ebp - 0x428]
call fcn.0040aff0
jmp 0x44696b
call fcn.00413b10
mov edi, edi
mov esi, 0xf6004468
inc sp
add byte [ecx + 0x4467], bh
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