Function at 0x46d3e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5c7430
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62f570]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x44], 2
mov eax, dword [esp + 0x50]
mov edx, dword [eax - 0xc]
cmp edx, 0xf8
jge 0x46d4c7
add eax, 0xfffffff0
push eax
call fcn.00405ce0
mov esi, dword [esp + 0x50]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d464
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d489
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d4b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x46d663
test edx, edx
jg 0x46d4df
or ebp, 0xffffffff
jmp 0x46d4fb
push 0x5c
push eax
call fcn.00584276
add esp, 8
test eax, eax
jne 0x46d4f3
or ebp, 0xffffffff
jmp 0x46d4fb
sub eax, dword [esp + 0x50]
sar eax, 1
mov ebp, eax
call fcn.0053a8e1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46d515
push 0x80004005
call fcn.004015b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x44], 3
cmp ebp, 0xffffffff
je 0x46d635
cmp ebp, 0xf8
jge 0x46d635
push ebp
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00409220
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 4
call fcn.00405d50
mov byte [esp + 0x44], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx - 0xc]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x46d5aa
push edi
lea ecx, [esp + 0x18]
call fcn.004062b0
mov ebx, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push ebx
call fcn.0058463c
add esp, 8
test edi, edi
jl 0x46d67c
cmp edi, dword [ebx - 8]
jg 0x46d67c
mov esi, dword [esp + 0x5c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
xor edx, edx
mov dword [ebx - 0xc], edi
push ecx
mov word [ebx + edi*2], dx
call fcn.0046ed80
mov ecx, dword [esp + 0x28]
mov eax, esi
mov edi, dword [eax + 0x18]
mov eax, dword [eax]
test ecx, ecx
je 0x46d5f7
cmp ecx, eax
je 0x46d5fc
call fcn.005807d8
cmp dword [esp + 0x2c], edi
jne 0x46d635
add ebp, 1
mov eax, dword [esp + 0x50]
mov ecx, dword [eax - 0xc]
js 0x46d677
cmp ebp, ecx
jge 0x46d677
lea edx, [eax + ebp*2]
push 0x5c
push edx
call fcn.00584276
add esp, 8
test eax, eax
je 0x46d677
sub eax, dword [esp + 0x50]
sar eax, 1
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x46d533
add ebx, 0xfffffff0
mov byte [esp + 0x44], 2
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46d656
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
cmp ebp, 0xffffffff
jne 0x46d6eb
mov eax, dword [esp + 0x50]
push 0x5c
push eax
call fcn.0058444b
add esp, 8
test eax, eax
jne 0x46d686
or ebp, 0xffffffff
jmp 0x46d6eb
or ebp, 0xffffffff
jmp 0x46d635
push 0x80070057
call fcn.004015b0
sub eax, dword [esp + 0x50]
sar eax, 1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x46d6eb
cmp ebp, 0xf8
jle 0x46d6eb
push ebp
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00409220
mov edi, dword [esp + 0x18]
push 0x5c
push edi
call fcn.0058444b
add esp, 8
test eax, eax
jne 0x46d6c4
or ebp, 0xffffffff
jmp 0x46d6ca
sub eax, edi
sar eax, 1
mov ebp, eax
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d6e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, 0xffffffff
jne 0x46d693
push ebp
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00409220
lea edi, [esp + 0x14]
mov byte [esp + 0x44], 5
call fcn.00440930
mov esi, dword [esp + 0x5c]
mov edx, edi
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0046ed80
mov ebx, dword [esp + 0x28]
mov edi, dword [esi + 0x18]
mov eax, dword [esi]
test ebx, ebx
je 0x46d72c
cmp ebx, eax
je 0x46d731
call fcn.005807d8
mov esi, dword [esp + 0x2c]
cmp esi, edi
je 0x46d758
test ebx, ebx
jne 0x46d754
call fcn.005807d8
cmp esi, dword [ebx + 0x18]
jne 0x46d74c
call fcn.005807d8
mov esi, dword [esi + 0x10]
jmp 0x46d8b5
mov ebx, dword [ebx]
jmp 0x46d742
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0x1c]
lea ecx, [esp + 0x14]
push ecx
call fcn.0046ec10
mov edx, dword [esp + 0x14]
push edx
mov dword [eax], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46d7b5
push ebp
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
call fcn.00409220
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d7b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
cmp dword [ecx - 0xc], 0
je 0x46d8b5
lea ecx, [esp + 0x28]
call fcn.005482f7
push 0
mov byte [esp + 0x48], 6
mov edx, dword [esp + 0x5c]
push 0x3002
push edx
lea ecx, [esp + 0x34]
call fcn.005488e5
test eax, eax
je 0x46d8a7
lea ecx, [esp + 0x28]
call fcn.005481e2
or eax, edx
push 2
lea ecx, [esp + 0x2c]
jne 0x46d815
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0xfeff
call fcn.0054802d
jmp 0x46d822
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x28]
push 0
push 0
call eax
lea ecx, [esp + 0x18]
call fcn.00401680
push ebp
push 0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x50], 7
call fcn.00409220
mov edi, eax
mov ebx, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x48], 8
call fcn.0046ec10
mov eax, dword [eax]
mov ecx, dword [esp + 0x54]
mov edx, dword [edi]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push str._s__r_n______s_d_r_n
push eax
call fcn.0040bc50
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 7
call fcn.00401590
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.0054802d
lea ecx, [esp + 0x28]
call fcn.00548291
lea ecx, [esp + 0x18]
call fcn.00401590
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 5
call fcn.005484ec
call fcn.0053a8e1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46d8cf
push 0x80004005
call fcn.004015b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
inc ebp
push ebp
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], 9
call fcn.004086f0
mov byte [esp + 0x44], 0xa
mov edx, dword [eax]
mov eax, dword [esp + 0x54]
push edx
push esi
push eax
lea ecx, [esp + 0x24]
push str._s_d_s
push ecx
call fcn.0040bc50
mov byte [esp + 0x58], 9
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0x104
jge 0x46daae
push 0x5c
push ebp
call fcn.0058444b
add esp, 8
test eax, eax
je 0x46d968
sub eax, ebp
sar eax, 1
cmp eax, 0xf8
jge 0x46daae
push 0x5c
push ebp
call fcn.0058444b
add esp, 8
test eax, eax
jne 0x46d97c
or eax, 0xffffffff
jmp 0x46d980
sub eax, ebp
sar eax, 1
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.00409220
mov byte [esp + 0x44], 0xd
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46d9ad
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea esi, [ebp - 0x10]
push esi
call fcn.00405ce0
mov ebx, dword [esp + 0x50]
add eax, 0x10
mov dword [ebx], eax
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x44], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d9e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 5
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46da01
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46da26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46da4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46da70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46da98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00405ce0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x50], 0xb
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.00405ce0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x54], 0xc
lea esi, [ebp - 0x10]
mov dword [esp + 0x38], esp
mov ebx, esp
push esi
call fcn.00405ce0
mov edi, dword [esp + 0x60]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
push edi
mov byte [esp + 0x58], 9
call fcn.0046d3e0
add esp, 0x14
mov byte [esp + 0x44], 5
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x46db35
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dba4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dbcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret