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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b438
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5ca104]
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.00501f00
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 0x59049c
call fcn.00404e80
lea ecx, [ebp - 0x254]
call fcn.004035a0
or ebx, 0xffffffff
test eax, eax
je 0x5037e6
push ecx
mov ecx, esp
push 0x59049c
call fcn.00404e80
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x254]
call fcn.004038a0
push eax
mov ecx, 0x5cd81c
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 0x5037e6
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.00524040
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 0x50384d
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.0054094f
mov edx, eax
add esp, 8
test edx, edx
js 0x503f56
mov ecx, dword [ebp - 0x228]
cmp edx, dword [ecx - 8]
jg 0x503f56
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 0x5a517c
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.0043c920
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 0x5038fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5cd81c]
cmp dword [eax - 0xc], 0
jne 0x503936
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
sub ecx, edx
sar ecx, 2
cmp ecx, 3
jb 0x503930
lea eax, [edx + 8]
mov ecx, 0x5cd81c
push eax
call fcn.00405470
mov eax, dword [0x5cd81c]
cmp dword [eax - 0xc], 0
je 0x50397e
lea eax, [ebp - 0x220]
push eax
call fcn.004386a0
add esp, 4
push dword [ebp - 0x220]
push dword [0x5cd81c]
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 0x50397e
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 0x503a09
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 0x5039f2
push str.SMDB
push esi
call fcn.0052419a
add esp, 8
test eax, eax
je 0x5039c7
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x5039e8
cmp dword [esi - 0xc], 0
jl 0x5039f2
push 0x5a5b60
push esi
call fcn.0052419a
add esp, 8
test eax, eax
je 0x5039f2
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x5039f2
mov dword [ebp - 0x22c], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x503a09
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 0x503a6d
push 0x5904a8
push eax
call fcn.0052419a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x503a38
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x503a61
cmp dword [eax - 0xc], 0
jl 0x503a6d
push 0x5904b0
push eax
call fcn.0052419a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x503a6d
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x503a6d
mov dword [0x5cd818], 1
jmp 0x503a77
mov dword [0x5cd818], 0
cmp dword [eax - 0xc], 0
jl 0x503d53
push 0x5904b8
push eax
call fcn.0052419a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x503aa4
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x503ad9
cmp dword [eax - 0xc], 0
jl 0x503d53
push 0x5904c0
push eax
call fcn.0052419a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x503cfd
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x503cfd
push ecx
mov ecx, esp
push 0x5904c0
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 0x503b58
push ecx
mov ecx, esp
push 0x5904b8
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 0x503b58
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 0x503c68
xor ebx, ebx
nop
mov eax, dword [ebp - 0x220]
test ebx, ebx
js 0x503c56
cmp ebx, dword [eax - 0xc]
jg 0x503ba9
lea eax, [eax + ebx*2]
push 0x5a61d4
push eax
call fcn.0052419a
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x220]
test edi, edi
je 0x503ba9
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
jne 0x503be0
test ebx, ebx
js 0x503c56
cmp ebx, dword [eax - 0xc]
jg 0x503c56
lea eax, [eax + ebx*2]
push 0x5a7f78
push eax
call fcn.0052419a
mov edi, eax
add esp, 8
test edi, edi
je 0x503c50
mov eax, dword [ebp - 0x220]
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
je 0x503c56
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 0x503c0c
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 0x503c3b
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x503b70
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x503b70
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x503c50
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 [0x5cd78c]
mov byte [ebp - 4], 8
test eax, eax
jne 0x503cca
push 0x174
call fcn.0051f7b6
add esp, 4
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x503cbf
mov ecx, eax
call fcn.004da4e0
jmp 0x503cc1
xor eax, eax
mov byte [ebp - 4], 8
mov dword [0x5cd78c], eax
lea ecx, [eax + 4]
mov byte [ebp - 4], 6
call fcn.004e0ed0
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 0x503cf7
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 0x503d53
push 0x5904c8
push eax
call fcn.0052419a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x503d2a
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x503dae
cmp dword [eax - 0xc], 0
jl 0x503d53
push 0x5904d0
push eax
call fcn.0052419a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x503d53
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x503dae
cmp dword [ebp - 0x22c], 0
jne 0x503dae
cmp dword [0x5cd818], 0
mov dword [0x5cd814], 0
jne 0x503d79
call fcn.0040b4b0
mov dword [0x5cd818], eax
push 0x5a0e3c
push str.start
push 0x5902d8
push 0
call fcn.0042f480
add esp, 0x10
call fcn.00501f50
call fcn.004fe830
mov ecx, edi
call fcn.00503f70
mov dword [ebp - 0x22c], eax
jmp 0x503e38
mov dword [0x5cd814], 1
cmp dword [eax - 0xc], 0
jl 0x503e0d
push 0x5904d8
push eax
call fcn.0052419a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x503de1
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x503e06
cmp dword [eax - 0xc], 0
jl 0x503e0d
push 0x5904e0
push eax
call fcn.0052419a
add esp, 8
test eax, eax
je 0x503e0d
sub eax, dword [ebp - 0x21c]
sar eax, 1
cmp eax, 0xffffffff
je 0x503e0d
mov esi, 1
jmp 0x503e0f
xor esi, esi
push 0x5a0e3c
push str.start
push 0x5902d8
push 0
call fcn.0042f480
push esi
call fcn.00502180
add esp, 0x14
mov dword [ebp - 0x22c], 0
mov esi, dword [ebp - 0x238]
mov byte [ebp - 4], 3
test esi, esi
je 0x503eac
mov edi, dword [ebp - 0x234]
cmp esi, edi
je 0x503e76
mov edx, dword [esi]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x503e69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x503e50
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.0041e620
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 0x503ecd
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 0x503ef5
push dword [ebp - 0x24c]
push eax
call fcn.00406450
push dword [ebp - 0x250]
call fcn.0052ea76
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 0x503f12
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 0x503f34
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.0051fefc
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004071e0
int3