Function at 0x479860
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de0c5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
push 0x4e5770
push eax
mov dword [ebp - 0x38], esi
call fcn.00479c20
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
jb 0x4798b7
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4798d7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4798ce
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test edi, edi
je 0x479a2e
call fcn.004782d0
mov ecx, eax
test ecx, ecx
je 0x479a82
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00477ee0
test al, al
jne 0x479929
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479910
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x30]
call fcn.00478540
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov byte [ebp - 4], 2
jb 0x479939
mov edi, dword [ebp - 0x28]
call fcn.004782d0
mov ecx, eax
test ecx, ecx
je 0x479a82
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00477ee0
test al, al
jne 0x47998a
test edi, edi
jne 0x47996c
xor ecx, ecx
jmp 0x479980
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479971
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00478540
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0048bbd0
add esp, 0xc
mov eax, dword [eax]
xor ecx, ecx
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], cx
mov ecx, esi
push eax
mov byte [ebp - 4], 5
call fcn.00408a70
mov edx, dword [ebp - 0x34]
or edi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4799ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x479a08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x479a24
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x28]
call fcn.00407180
jmp 0x479a65
mov eax, dword [ebp - 0x28]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00477ec0
int3