Function at 0x474ad0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5c55d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x63727c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x4c]
mov edx, dword [eax - 0xc]
cmp edx, 0xf8
mov dword [esp + 0x40], 2
jge 0x474bb7
add eax, 0xfffffff0
push eax
call fcn.00403250
mov esi, dword [esp + 0x4c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474b54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474b79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474ba1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x58]
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x474d52
test edx, edx
jg 0x474bcf
or esi, 0xffffffff
jmp 0x474beb
push 0x5c
push eax
call fcn.0058885d
add esp, 8
test eax, eax
jne 0x474be3
or esi, 0xffffffff
jmp 0x474beb
sub eax, dword [esp + 0x4c]
sar eax, 1
mov esi, eax
call fcn.0053fed4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x474c05
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x40], 3
cmp esi, 0xffffffff
je 0x474d24
cmp esi, 0xf8
jge 0x474d24
push esi
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x58]
call fcn.004090e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 4
call fcn.00404490
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x40], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x474c74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, edi
or eax, ecx
jge 0x474c9a
push edi
lea ecx, [esp + 0x18]
call fcn.00403200
mov ebp, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push ebp
call fcn.00588a74
add esp, 8
test edi, edi
jl 0x474d6b
cmp edi, dword [ebp - 8]
jg 0x474d6b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
xor edx, edx
push ecx
mov dword [ebp - 0xc], edi
mov ecx, ebx
mov word [ebp + edi*2], dx
call fcn.00472a20
mov ecx, dword [esp + 0x28]
mov edi, dword [ebx + 0x18]
mov eax, dword [ebx]
test ecx, ecx
je 0x474ce4
cmp ecx, eax
je 0x474ce9
call fcn.00585049
cmp dword [esp + 0x2c], edi
jne 0x474d24
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx - 0xc]
lea eax, [esi + 1]
test eax, eax
jl 0x474d66
cmp eax, edx
jge 0x474d66
lea edx, [ecx + eax*2]
push 0x5c
push edx
call fcn.0058885d
add esp, 8
test eax, eax
je 0x474d66
sub eax, dword [esp + 0x4c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x474c23
lea eax, [ebp - 0x10]
mov byte [esp + 0x40], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474d45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x474dda
mov eax, dword [esp + 0x4c]
push 0x5c
push eax
call fcn.00588883
add esp, 8
test eax, eax
jne 0x474d75
or esi, 0xffffffff
jmp 0x474dda
or esi, 0xffffffff
jmp 0x474d24
push 0x80070057
call fcn.00401020
sub eax, dword [esp + 0x4c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x474dda
cmp esi, 0xf8
jle 0x474dda
push esi
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x58]
call fcn.004090e0
mov edi, dword [esp + 0x18]
push 0x5c
push edi
call fcn.00588883
add esp, 8
test eax, eax
jne 0x474db3
or esi, 0xffffffff
jmp 0x474db9
sub eax, edi
sar eax, 1
mov esi, eax
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x474dd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x474d82
push esi
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x58]
call fcn.004090e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.0043f380
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.00472a20
mov ebp, dword [esp + 0x28]
mov edi, dword [ebx + 0x18]
mov eax, dword [ebx]
test ebp, ebp
je 0x474e1b
cmp ebp, eax
je 0x474e20
call fcn.00585049
mov ebx, dword [esp + 0x2c]
cmp ebx, edi
je 0x474e48
test ebp, ebp
jne 0x474e43
call fcn.00585049
cmp ebx, dword [ebp + 0x18]
jne 0x474e3b
call fcn.00585049
mov ebp, dword [ebx + 0x10]
jmp 0x474fa5
mov ebp, dword [ebp]
jmp 0x474e31
mov ecx, dword [esp + 0x58]
mov ebp, dword [ecx + 0x1c]
lea edx, [esp + 0x14]
push edx
call fcn.00474630
mov dword [eax], ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x474ea5
push esi
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x58]
call fcn.004090e0
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
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 0x474ea5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x54]
cmp dword [ecx - 0xc], 0
je 0x474fa5
lea ecx, [esp + 0x28]
call fcn.0054df99
mov edx, dword [esp + 0x54]
push 0
push 0x3002
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 6
call fcn.0054e587
test eax, eax
je 0x474f97
lea ecx, [esp + 0x28]
call fcn.0054de84
or eax, edx
push 2
lea ecx, [esp + 0x2c]
jne 0x474f05
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0xfeff
call fcn.0054dccf
jmp 0x474f12
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x28]
push 0
push 0
call eax
lea ecx, [esp + 0x18]
call fcn.004013d0
push esi
push 0
lea ecx, [esp + 0x24]
push ecx
mov bl, 7
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], bl
call fcn.004090e0
mov edi, eax
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x44], 8
call fcn.00474630
mov eax, dword [eax]
mov ecx, dword [esp + 0x50]
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.004096d0
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call fcn.00401400
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.0054dccf
lea ecx, [esp + 0x28]
call fcn.0054df33
lea ecx, [esp + 0x18]
call fcn.00401400
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 5
call fcn.0054e18e
call fcn.0053fed4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x474fbf
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
inc esi
push esi
lea ecx, [esp + 0x20]
push ecx
mov bl, 9
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], bl
call fcn.00409760
mov edx, dword [eax]
mov eax, dword [esp + 0x50]
push edx
push ebp
push eax
lea ecx, [esp + 0x24]
push 0x5d6640
push ecx
mov byte [esp + 0x54], 0xa
call fcn.004096d0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x40], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x475029
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0x104
jge 0x47519e
push 0x5c
push esi
call fcn.00588883
add esp, 8
test eax, eax
je 0x475058
sub eax, esi
sar eax, 1
cmp eax, 0xf8
jge 0x47519e
push 0x5c
push esi
call fcn.00588883
add esp, 8
test eax, eax
jne 0x47506c
or eax, 0xffffffff
jmp 0x475070
sub eax, esi
sar eax, 1
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.004090e0
mov edi, dword [esp + 0x20]
push edi
mov byte [esp + 0x44], 0xd
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47509d
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
add esi, 0xfffffff0
push esi
call fcn.00403250
mov ebp, dword [esp + 0x4c]
add eax, 0x10
mov dword [ebp], eax
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x40], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4750d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 5
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4750f1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x40], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475116
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47513b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475160
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push eax
call fcn.00403250
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push eax
mov byte [esp + 0x50], 0xb
call fcn.00403250
add eax, 0x10
mov dword [edi], eax
add esi, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
push esi
mov byte [esp + 0x54], 0xc
call fcn.00403250
add eax, 0x10
mov dword [edi], eax
mov edi, dword [esp + 0x5c]
add esp, 4
push edi
mov byte [esp + 0x54], bl
call fcn.00474ad0
add esp, 0x14
mov byte [esp + 0x40], 5
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x475224
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x40], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475249
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47526e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4752bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret