Function at 0x473640
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], edi
test ebx, ebx
jne 0x47367f
push 0x576bd0
mov ecx, edi
call fcn.00464b60
jmp 0x4737fa
push 0
call fcn.00448620
cmp dword [esi + 0x208], 0
jne 0x47369c
push ebx
mov ecx, edi
call fcn.00464b60
jmp 0x4737fa
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
mov ecx, 0x599458
call edx
add eax, 0x10
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x43c], 0
mov edi, edi
lea eax, [ebp - 0x43c]
push eax
push ebx
mov ecx, esi
call fcn.00416450
mov esi, eax
test esi, esi
je 0x473c03
mov ecx, esi
sub ecx, ebx
push 0x599458
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x448]
call fcn.0043a0a0
mov edi, dword [ebp - 0x448]
mov edx, dword [edi - 0xc]
push edx
push edi
lea ecx, [ebp - 0x418]
call fcn.0044a1a0
add edi, 0xfffffff0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x473723
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x43c]
movzx eax, word [esi + ecx*2]
lea ebx, [esi + ecx*2]
mov edi, esi
mov dword [ebp - 0x438], edi
test ax, ax
je 0x4737b8
cmp ax, 0x5c
je 0x4737ac
cmp ax, 0x2f
je 0x4737a0
mov edx, ebx
sub edx, edi
push 0x599458
sar edx, 1
push edx
push edi
lea ecx, [ebp - 0x44c]
call fcn.0043a0a0
mov esi, dword [ebp - 0x44c]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x418]
call fcn.0044a1a0
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473bea
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x473bea
cmp ax, 0x5c
je 0x4737ac
cmp ax, 0x2f
jne 0x47380f
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4737a0
push edi
lea ecx, [ebp - 0x418]
call fcn.004502c0
mov edi, dword [ebp - 0x420]
mov esi, dword [ebp - 0x418]
add esi, 0xfffffff0
push esi
call fcn.0041eae0
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4737fa
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 8
cmp word [ebx], 0
je 0x4737b8
mov ecx, dword [ebp - 0x41c]
push ebx
mov dword [ebp - 0x42c], 0
call fcn.004164d0
mov esi, eax
sub eax, ebx
push 0x599458
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x424]
call fcn.0043a0a0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.0051d250
mov eax, dword [ebp - 0x424]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x473870
sub eax, edx
sar eax, 1
je 0x4738bd
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x41c]
push eax
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4738bd
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x473926
mov ebx, esi
mov dword [ebp - 0x42c], 1
lea ecx, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x41c]
push ebx
call fcn.00416450
cmp dword [ebp - 0x42c], 0
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], ebx
jne 0x473b3a
xor esi, esi
mov dword [ebp - 0x428], esi
movzx ecx, word [ebx]
test cx, cx
je case.0x47391f.9
test eax, eax
je 0x473909
cmp ebx, eax
jae case.0x47391f.9
movzx ecx, cx
add ecx, 0xfffffff7
cmp ecx, 0x53
ja case.0x47391f.11
movzx edx, byte [ecx + 0x473c30]
jmp dword [edx*4 + 0x473c24]
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4738bd
mov edx, esi
sub edx, edi
push 0x599458
sar edx, 1
push edx
push edi
lea ecx, [ebp - 0x454]
call fcn.0043a0a0
mov edi, dword [ebp - 0x454]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x418]
call fcn.0044a1a0
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473981
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ebx, esi
jmp 0x473bc8
sar esi, 1
cmp dword [ebp - 0x430], 0
jne 0x47399b
test esi, esi
jne 0x473c14
mov eax, dword [0x599458]
mov edx, dword [eax]
push 2
push esi
mov ecx, 0x599458
call edx
test eax, eax
je 0x473c1e
lea edi, [eax + 0x10]
test esi, esi
jl 0x473c14
cmp esi, dword [edi - 8]
jg 0x473c14
mov edx, dword [ebp - 0x430]
lea eax, [esi + esi]
push eax
push edx
push eax
xor ecx, ecx
mov dword [edi - 0xc], esi
push edi
mov word [eax + edi], cx
call fcn.0051d3de
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0051d250
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x473a06
sub eax, edx
sar eax, 1
je 0x473a45
mov edx, dword [ebp - 0x41c]
push edi
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x473a45
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x473b4e
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x473a61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x434]
mov edi, dword [ebp - 0x438]
mov esi, dword [ebp - 0x428]
add ebx, 2
add esi, 2
mov dword [ebp - 0x428], esi
cmp ebx, eax
jne 0x4738f1
mov eax, dword [ebp - 0x430]
mov ecx, ebx
sub ecx, eax
push 0x599458
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x440]
call fcn.0043a0a0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.0051d250
mov esi, dword [ebp - 0x440]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x473ad0
sub eax, edx
sar eax, 1
je 0x473b15
mov ecx, dword [ebp - 0x41c]
push esi
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x473b15
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x473b15
mov dword [ebp - 0x42c], 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473b31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x42c], 0
je case.0x47391f.9
push 0xd
push str._UserProfile_
lea ecx, [ebp - 0x418]
call fcn.0044a1a0
jmp 0x473bc8
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473b3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xd
push str._UserProfile_
lea ecx, [ebp - 0x418]
call fcn.0044a1a0
jmp 0x473bc8
mov ecx, ebx
sub ecx, edi
push 0x599458
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x450]
call fcn.0043a0a0
mov esi, dword [ebp - 0x450]
mov edx, dword [esi - 0xc]
push edx
push esi
lea ecx, [ebp - 0x418]
call fcn.0044a1a0
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x473bc8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473bea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x420]
test ebx, ebx
je 0x4737ca
mov esi, dword [ebp - 0x41c]
jmp 0x4736c0
push ebx
lea ecx, [ebp - 0x418]
call fcn.004502c0
jmp 0x4737ca
push 0x80070057
call fcn.00414840
call fcn.0041ead0
nop
jle 0x473c61
inc edi
add byte [eax + 0x6d004739], cl
cmp al, byte [edi]
add byte [eax], al
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 [ecx]
add al, byte [eax]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [eax]
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 [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 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 [eax]
int3
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