Function at 0x478ca0
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572526
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 0
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x479040
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x478d21
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005126f0
add esp, 0xc
lea eax, [ebp - 0x220]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x47904a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x228]
call fcn.0040e2c0
test al, al
jne 0x478da9
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478d87
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0040d900
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.00478790
mov edx, dword [ebp - 0x228]
or ebx, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478de9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x22c]
push 0x12c
push esi
call fcn.00410d50
add esp, 8
test eax, eax
je 0x478e2b
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x230], edi
call fcn.0040c650
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00412320
add esp, 4
test eax, eax
jne 0x478fa9
push 0x12c
call fcn.004114c0
movzx eax, ax
add esp, 4
test ax, ax
jne 0x478eb0
push 0x30
push 0x588c48
push 0x596b28
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor edi, edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x478e71
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x478e90
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x16], 0x3a
mov word [ebp - 0x18], ax
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x479054
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x228]
call fcn.0040e2c0
test al, al
jne 0x478f14
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478ef5
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0040d900
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x230], 1
push 0
push eax
call fcn.00478790
mov esi, dword [ebp - 0x22c]
add esp, 0xc
test eax, eax
je 0x478f71
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x238], edi
call fcn.0040c650
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00412320
add esp, 4
mov byte [ebp - 0x221], 0
test eax, eax
jne 0x478f78
mov byte [ebp - 0x221], 1
mov edx, dword [ebp - 0x228]
mov eax, ebx
mov dword [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478f9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x221], 0
jne 0x478e54
test esi, esi
je 0x478e54
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x478fc5
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp - 0x234]
mov edx, esi
add ecx, 0x40
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x478fd3
sub edx, edi
sar edx, 1
push edx
push esi
call fcn.0040d900
push esi
push str.Extract_Dir_s
call fcn.00477cb0
mov edi, dword [ebp - 0x234]
push 0
push 0
push edi
push 0x4786f0
push 0
push 0
call fcn.0054184a
add esp, 0x20
mov dword [edi + 0x50], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [edi + 0x50], 0
mov dword [edi + 0x64], eax
je 0x478e54
test eax, eax
je 0x478e54
mov edi, 1
jmp 0x478e56
push 0x80004005
call fcn.0040ae00
push 0x80004005
call fcn.0040ae00
push 0x80004005
call fcn.0040ae00
int3