Function at 0x4fe4a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585608
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5c4104]
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 edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x23c], edi
push eax
call fcn.004fcc90
add esp, 8
push 0
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], 0
call fcn.00401c90
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push 0x58a54c
call fcn.00404e80
lea ecx, [ebp - 0x254]
call fcn.004035a0
or ebx, 0xffffffff
test eax, eax
je 0x4fe576
push ecx
mov ecx, esp
push 0x58a54c
call fcn.00404e80
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x254]
call fcn.004038a0
push eax
mov ecx, 0x5c781c
mov byte [ebp - 4], 2
call fcn.00405470
mov edx, dword [ebp - 0x22c]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fe576
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051edd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x228]
call fcn.00404e80
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 3
cmp dword [eax - 4], 1
jle 0x4fe5dd
push dword [eax - 0xc]
lea ecx, [ebp - 0x228]
call fcn.00405b80
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x228]
push dword [eax - 8]
push eax
call fcn.0053b6de
mov edx, eax
add esp, 8
test edx, edx
js 0x4fece6
mov ecx, dword [ebp - 0x228]
cmp edx, dword [ecx - 8]
jg 0x4fece6
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
mov word [eax + edx*2], cx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], ecx
push 0x59f1ec
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.00404e80
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0043b750
mov edx, dword [ebp - 0x220]
add esp, 0xc
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fe68c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5c781c]
cmp dword [eax - 0xc], 0
jne 0x4fe6c6
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
sub ecx, edx
sar ecx, 2
cmp ecx, 3
jb 0x4fe6c0
lea eax, [edx + 8]
mov ecx, 0x5c781c
push eax
call fcn.00405470
mov eax, dword [0x5c781c]
cmp dword [eax - 0xc], 0
je 0x4fe70e
lea eax, [ebp - 0x220]
push eax
call fcn.004374d0
add esp, 4
push dword [ebp - 0x220]
push dword [0x5c781c]
push str.DelayPid
push str.dllrepairOfficial
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fe70e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
sub eax, edx
sar eax, 2
cmp eax, 4
jb 0x4fe799
mov eax, dword [edx + 0xc]
sub eax, 0x10
push eax
call fcn.00405650
add esp, 4
cmp dword [eax + 4], 0
lea esi, [eax + 0x10]
jl 0x4fe782
push str.SMDB
push esi
call fcn.0051ef2a
add esp, 8
test eax, eax
je 0x4fe757
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4fe778
cmp dword [esi - 0xc], 0
jl 0x4fe782
push 0x59fbc8
push esi
call fcn.0051ef2a
add esp, 8
test eax, eax
je 0x4fe782
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4fe782
mov dword [ebp - 0x22c], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4fe799
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jl 0x4fe7fd
push 0x58a558
push eax
call fcn.0051ef2a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4fe7c8
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4fe7f1
cmp dword [eax - 0xc], 0
jl 0x4fe7fd
push 0x58a560
push eax
call fcn.0051ef2a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4fe7fd
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4fe7fd
mov dword [0x5c7818], 1
jmp 0x4fe807
mov dword [0x5c7818], 0
cmp dword [eax - 0xc], 0
jl 0x4feae3
push 0x58a568
push eax
call fcn.0051ef2a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4fe834
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4fe869
cmp dword [eax - 0xc], 0
jl 0x4feae3
push 0x58a570
push eax
call fcn.0051ef2a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4fea8d
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4fea8d
push ecx
mov ecx, esp
push 0x58a570
call fcn.00404e80
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x254]
call fcn.004038a0
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 6
cmp dword [eax - 0xc], 0
jne 0x4fe8e8
push ecx
mov ecx, esp
push 0x58a568
call fcn.00404e80
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
call fcn.004038a0
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call fcn.00405470
mov edx, dword [ebp - 0x224]
mov eax, ebx
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fe8e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4fe9f8
xor ebx, ebx
nop
mov eax, dword [ebp - 0x220]
test ebx, ebx
js 0x4fe9e6
cmp ebx, dword [eax - 0xc]
jg 0x4fe939
lea eax, [eax + ebx*2]
push 0x5a023c
push eax
call fcn.0051ef2a
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x220]
test edi, edi
je 0x4fe939
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
jne 0x4fe970
test ebx, ebx
js 0x4fe9e6
cmp ebx, dword [eax - 0xc]
jg 0x4fe9e6
lea eax, [eax + ebx*2]
push 0x5a1edc
push eax
call fcn.0051ef2a
mov edi, eax
add esp, 8
test edi, edi
je 0x4fe9e0
mov eax, dword [ebp - 0x220]
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
je 0x4fe9e6
push edi
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.00404a00
mov esi, dword [ebp - 0x224]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4fe99c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x220]
inc edi
add esi, 0xfffffff0
mov ebx, edi
cmp edi, dword [eax - 0xc]
jge 0x4fe9cb
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4fe900
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4fe900
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4fe9e0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [ebp - 0x23c]
or ebx, 0xffffffff
push ecx
mov esi, esp
mov dword [ebp - 0x23c], esp
mov dword [ebp - 0x224], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.00405650
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [0x5c778c]
mov byte [ebp - 4], 8
test eax, eax
jne 0x4fea5a
push 0x174
call fcn.0051a548
add esp, 4
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x4fea4f
mov ecx, eax
call fcn.004d51e0
jmp 0x4fea51
xor eax, eax
mov byte [ebp - 4], 8
mov dword [0x5c778c], eax
lea ecx, [eax + 4]
mov byte [ebp - 4], 6
call fcn.004dbbe0
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fea87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jl 0x4feae3
push 0x58a578
push eax
call fcn.0051ef2a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4feaba
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4feb3e
cmp dword [eax - 0xc], 0
jl 0x4feae3
push 0x58a580
push eax
call fcn.0051ef2a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4feae3
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4feb3e
cmp dword [ebp - 0x22c], 0
jne 0x4feb3e
cmp dword [0x5c7818], 0
mov dword [0x5c7814], 0
jne 0x4feb09
call fcn.0040b4a0
mov dword [0x5c7818], eax
push 0x59aeec
push str.start
push 0x58a388
push 0
call fcn.0042e200
add esp, 0x10
call fcn.004fcce0
call fcn.004f95b0
mov ecx, edi
call fcn.004fed00
mov dword [ebp - 0x22c], eax
jmp 0x4febc8
mov dword [0x5c7814], 1
cmp dword [eax - 0xc], 0
jl 0x4feb9d
push 0x58a588
push eax
call fcn.0051ef2a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4feb71
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4feb96
cmp dword [eax - 0xc], 0
jl 0x4feb9d
push 0x58a590
push eax
call fcn.0051ef2a
add esp, 8
test eax, eax
je 0x4feb9d
sub eax, dword [ebp - 0x21c]
sar eax, 1
cmp eax, 0xffffffff
je 0x4feb9d
mov esi, 1
jmp 0x4feb9f
xor esi, esi
push 0x59aeec
push str.start
push 0x58a388
push 0
call fcn.0042e200
push esi
call fcn.004fcf10
add esp, 0x14
mov dword [ebp - 0x22c], 0
mov esi, dword [ebp - 0x238]
mov byte [ebp - 4], 3
test esi, esi
je 0x4fec3c
mov edi, dword [ebp - 0x234]
cmp esi, edi
je 0x4fec06
mov edx, dword [esi]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4febf9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x4febe0
mov esi, dword [ebp - 0x238]
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x238]
sub eax, esi
sar eax, 2
push eax
push esi
call fcn.0041d8a0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov edx, dword [ebp - 0x228]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fec5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x250]
mov byte [ebp - 4], 0
test eax, eax
je 0x4fec85
push dword [ebp - 0x24c]
push eax
call fcn.00406450
push dword [ebp - 0x250]
call fcn.00529806
add esp, 0xc
mov edx, dword [ebp - 0x254]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4feca2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4fecc4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x22c]
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.0051ac8e
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004071e0
int3