Function at 0x474cb0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5c57f0
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 0x474d97
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 0x474d34
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 0x474d59
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 0x474d81
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 0x474f32
test edx, edx
jg 0x474daf
or esi, 0xffffffff
jmp 0x474dcb
push 0x5c
push eax
call fcn.00588a3d
add esp, 8
test eax, eax
jne 0x474dc3
or esi, 0xffffffff
jmp 0x474dcb
sub eax, dword [esp + 0x4c]
sar eax, 1
mov esi, eax
call fcn.005400b4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x474de5
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 0x474f04
cmp esi, 0xf8
jge 0x474f04
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 0x474e54
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 0x474e7a
push edi
lea ecx, [esp + 0x18]
call fcn.00403200
mov ebp, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push ebp
call fcn.00588c54
add esp, 8
test edi, edi
jl 0x474f4b
cmp edi, dword [ebp - 8]
jg 0x474f4b
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.00472c00
mov ecx, dword [esp + 0x28]
mov edi, dword [ebx + 0x18]
mov eax, dword [ebx]
test ecx, ecx
je 0x474ec4
cmp ecx, eax
je 0x474ec9
call fcn.00585229
cmp dword [esp + 0x2c], edi
jne 0x474f04
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx - 0xc]
lea eax, [esi + 1]
test eax, eax
jl 0x474f46
cmp eax, edx
jge 0x474f46
lea edx, [ecx + eax*2]
push 0x5c
push edx
call fcn.00588a3d
add esp, 8
test eax, eax
je 0x474f46
sub eax, dword [esp + 0x4c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x474e03
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 0x474f25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x474fba
mov eax, dword [esp + 0x4c]
push 0x5c
push eax
call fcn.00588a63
add esp, 8
test eax, eax
jne 0x474f55
or esi, 0xffffffff
jmp 0x474fba
or esi, 0xffffffff
jmp 0x474f04
push 0x80070057
call fcn.00401020
sub eax, dword [esp + 0x4c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x474fba
cmp esi, 0xf8
jle 0x474fba
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.00588a63
add esp, 8
test eax, eax
jne 0x474f93
or esi, 0xffffffff
jmp 0x474f99
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 0x474fb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x474f62
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.0043f3c0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.00472c00
mov ebp, dword [esp + 0x28]
mov edi, dword [ebx + 0x18]
mov eax, dword [ebx]
test ebp, ebp
je 0x474ffb
cmp ebp, eax
je 0x475000
call fcn.00585229
mov ebx, dword [esp + 0x2c]
cmp ebx, edi
je 0x475028
test ebp, ebp
jne 0x475023
call fcn.00585229
cmp ebx, dword [ebp + 0x18]
jne 0x47501b
call fcn.00585229
mov ebp, dword [ebx + 0x10]
jmp 0x475185
mov ebp, dword [ebp]
jmp 0x475011
mov ecx, dword [esp + 0x58]
mov ebp, dword [ecx + 0x1c]
lea edx, [esp + 0x14]
push edx
call fcn.00474810
mov dword [eax], ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x475085
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 0x475085
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 0x475185
lea ecx, [esp + 0x28]
call fcn.0054e179
mov edx, dword [esp + 0x54]
push 0
push 0x3002
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 6
call fcn.0054e767
test eax, eax
je 0x475177
lea ecx, [esp + 0x28]
call fcn.0054e064
or eax, edx
push 2
lea ecx, [esp + 0x2c]
jne 0x4750e5
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0xfeff
call fcn.0054deaf
jmp 0x4750f2
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.00474810
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.0054deaf
lea ecx, [esp + 0x28]
call fcn.0054e113
lea ecx, [esp + 0x18]
call fcn.00401400
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 5
call fcn.0054e36e
call fcn.005400b4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47519f
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 0x5d6660
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 0x475209
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 0x47537e
push 0x5c
push esi
call fcn.00588a63
add esp, 8
test eax, eax
je 0x475238
sub eax, esi
sar eax, 1
cmp eax, 0xf8
jge 0x47537e
push 0x5c
push esi
call fcn.00588a63
add esp, 8
test eax, eax
jne 0x47524c
or eax, 0xffffffff
jmp 0x475250
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 0x47527d
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 0x4752b3
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 0x4752d1
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 0x4752f6
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 0x47531b
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 0x475340
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 0x475368
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.00474cb0
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 0x475404
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 0x475429
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 0x47544e
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 0x475473
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 0x47549b
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