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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5826f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5cc128]
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x258]
mov eax, dword [ebp + 0xc]
push 0
push edi
mov dword [ebp - 0x23c], eax
call fcn.004d0670
push ecx
mov ecx, esp
mov dword [ebp - 4], 0
push 0x58979c
call fcn.00407900
lea ecx, [ebp - 0x258]
call fcn.004d1df0
or ebx, 0xffffffff
test eax, eax
je 0x4dae8d
push ecx
mov ecx, esp
push 0x58979c
call fcn.00407900
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x258]
call fcn.004d2060
push eax
mov ecx, 0x5d0e88
mov byte [ebp - 4], 1
call fcn.00402ed0
mov edx, dword [ebp - 0x228]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4dae8d
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.0051d210
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 - 0x22c]
call fcn.00407900
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 2
cmp dword [eax - 4], 1
jle 0x4daef4
push dword [eax - 0xc]
lea ecx, [ebp - 0x22c]
call fcn.00407390
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x22c]
push dword [eax - 8]
push eax
call fcn.0053a24e
mov edx, eax
add esp, 8
test edx, edx
js 0x4db678
mov ecx, dword [ebp - 0x22c]
cmp edx, dword [ecx - 8]
jg 0x4db678
mov dword [ecx - 0xc], edx
xor esi, esi
mov eax, dword [ebp - 0x22c]
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x220], esi
mov word [eax + edx*2], cx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], ecx
push 0x5a2710
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00407900
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0048bc60
mov edx, dword [ebp - 0x224]
add esp, 0xc
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4dafab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5d0e88]
mov ecx, dword [ebp - 0x238]
cmp dword [eax - 0xc], 0
jne 0x4dafe0
mov eax, dword [ebp - 0x234]
sub eax, ecx
sar eax, 2
cmp eax, 3
jb 0x4dafe0
lea eax, [ecx + 8]
mov ecx, 0x5d0e88
push eax
call fcn.00402ed0
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x234]
sub eax, ecx
sar eax, 2
cmp eax, 4
jb 0x4db0bf
mov eax, dword [ecx + 0xc]
sub eax, 0x10
push eax
call fcn.00406e20
add esp, 4
cmp dword [eax + 4], 0
lea esi, [eax + 0x10]
jl 0x4db0a2
push str.SMDB
push esi
call fcn.0051d36a
add esp, 8
test eax, eax
je 0x4db02b
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4db04c
cmp dword [esi - 0xc], 0
jl 0x4db0a2
push 0x5a7020
push esi
call fcn.0051d36a
add esp, 8
test eax, eax
je 0x4db056
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4db056
mov dword [ebp - 0x228], 1
cmp dword [esi - 0xc], 0
jl 0x4db0a2
push 0x5897a8
push esi
call fcn.0051d36a
add esp, 8
test eax, eax
je 0x4db077
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4db098
cmp dword [esi - 0xc], 0
jl 0x4db0a2
push 0x5897ac
push esi
call fcn.0051d36a
add esp, 8
test eax, eax
je 0x4db0a2
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4db0a2
mov dword [ebp - 0x220], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4db0b9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x220]
push edi
lea ecx, [ebp - 0x21c]
call fcn.00407900
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 5
cmp dword [eax - 0xc], 0
jl 0x4db133
push 0x5897b0
push eax
call fcn.0051d36a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4db0fe
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4db127
cmp dword [eax - 0xc], 0
jl 0x4db133
push 0x5897b8
push eax
call fcn.0051d36a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4db133
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4db133
mov dword [0x5d0e80], 1
jmp 0x4db13d
mov dword [0x5d0e80], 0
cmp dword [eax - 0xc], 0
jl 0x4db18f
push 0x5897c0
push eax
call fcn.0051d36a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4db166
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4db19d
cmp dword [eax - 0xc], 0
jl 0x4db18f
push 0x5897c8
push eax
call fcn.0051d36a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4db18f
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4db19d
mov dword [0x5d0e84], 0
test esi, esi
je 0x4db1a7
mov dword [0x5d0e84], 1
cmp dword [eax - 0xc], 0
jl 0x4db47d
push 0x5897d0
push eax
call fcn.0051d36a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4db1d4
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4db209
cmp dword [eax - 0xc], 0
jl 0x4db47d
push 0x5897d8
push eax
call fcn.0051d36a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4db427
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4db427
push ecx
mov ecx, esp
push 0x5897d8
call fcn.00407900
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x258]
call fcn.004d2060
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 6
cmp dword [eax - 0xc], 0
jne 0x4db288
push ecx
mov ecx, esp
push 0x5897d0
call fcn.00407900
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x258]
call fcn.004d2060
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call fcn.00402ed0
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 0x4db288
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 0x4db392
xor ebx, ebx
nop
mov eax, dword [ebp - 0x220]
test ebx, ebx
js 0x4db386
cmp ebx, dword [eax - 0xc]
jg 0x4db2d9
lea eax, [eax + ebx*2]
push 0x5a2b74
push eax
call fcn.0051d36a
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x220]
test edi, edi
je 0x4db2d9
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
jne 0x4db310
test ebx, ebx
js 0x4db386
cmp ebx, dword [eax - 0xc]
jg 0x4db386
lea eax, [eax + ebx*2]
push 0x5a74a0
push eax
call fcn.0051d36a
mov edi, eax
add esp, 8
test edi, edi
je 0x4db380
mov eax, dword [ebp - 0x220]
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
je 0x4db386
push edi
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.00415580
mov esi, dword [ebp - 0x224]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4db33c
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 0x4db36b
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4db2a0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4db2a0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4db380
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]
or ebx, 0xffffffff
push ecx
mov esi, esp
mov dword [ebp - 0x224], esp
mov dword [ebp - 0x240], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.00406e20
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [0x5d0dcc]
mov byte [ebp - 4], 8
test eax, eax
jne 0x4db3f4
push 0x178
call fcn.004f81ee
add esp, 4
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x4db3e9
mov ecx, eax
call fcn.00448830
jmp 0x4db3eb
xor eax, eax
mov byte [ebp - 4], 8
mov dword [0x5d0dcc], eax
lea ecx, [eax + 4]
mov byte [ebp - 4], 6
call fcn.00451020
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db421
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 0x4db47d
push 0x5897e0
push eax
call fcn.0051d36a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4db454
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4db4df
cmp dword [eax - 0xc], 0
jl 0x4db47d
push 0x5897e8
push eax
call fcn.0051d36a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4db47d
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4db4df
cmp dword [ebp - 0x228], 0
jne 0x4db4df
xor eax, eax
mov dword [0x5d0e7c], eax
cmp dword [0x5d0e80], eax
jne 0x4db4a4
call fcn.0047e9b0
mov dword [0x5d0e80], eax
mov eax, dword [0x5d0e7c]
push dword [0x5d0e80]
push eax
push str.silent_dupdate_d
push str.start
push 0x589664
call fcn.0047e000
add esp, 0x14
call fcn.004d9620
call fcn.004d6710
mov ecx, dword [ebp - 0x23c]
call fcn.004db690
mov dword [ebp - 0x228], eax
jmp 0x4db55a
mov dword [0x5d0e7c], 1
cmp dword [eax - 0xc], 0
jl 0x4db526
push 0x5897c0
push eax
call fcn.0051d36a
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4db512
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4db526
cmp dword [eax - 0xc], 0
jl 0x4db526
push 0x5897c8
push eax
call fcn.0051d36a
add esp, 8
push dword [0x5d0e80]
push dword [0x5d0e7c]
push str.silent_dupdate_d
push str.start
push 0x589664
call fcn.0047e180
push 1
call fcn.004d9850
add esp, 0x18
mov dword [ebp - 0x228], 0
mov edx, dword [ebp - 0x21c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db57b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x238]
mov byte [ebp - 4], 2
test esi, esi
je 0x4db5ef
mov edi, dword [ebp - 0x234]
cmp esi, edi
je 0x4db5b9
mov edx, dword [esi]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db5ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x4db593
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.0044ca00
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov edx, dword [ebp - 0x22c]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db610
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x254]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4db63b
push dword [ebp - 0x250]
push eax
call fcn.004d34a0
push dword [ebp - 0x254]
call fcn.00528376
add esp, 0xc
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4db656
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x228]
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.004f88bd
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004079f0
int3