Function at 0x403270
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x413080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push str.MaxAttempts
push edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
call sub.libav.dll_Ordinal_44283
mov ecx, dword [ebp + 0x10]
add esp, 8
cmp dword [eax + 0x10], ecx
jne 0x4032b9
mov dword [ebp - 0x60], 1
cmp dword [eax + 0x14], ebx
je 0x4032bc
mov dword [ebp - 0x60], ebx
push 0x4139a0
call sub.libav.dll_Ordinal_44203
mov esi, eax
add esp, 4
test esi, esi
jne 0x4032e5
pop edi
pop esi
mov eax, 0x39
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push 0x200
push esi
push 0x413ba0
call dword [sym.imp.MSVCR110.dll_strncpy]
push esi
mov byte [0x413d9f], bl
call dword [sym.imp.MSVCR110.dll_free]
push 0x413ba0
call dword [sym.imp.MSVCR110.dll__mkdir]
add esp, 0x14
test eax, eax
jne 0x4032cf
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
push str.LocalIPAddress
push edi
call sub.libav.dll_Ordinal_44283
add esp, 0xc
cmp dword [eax + 0x18], ebx
je 0x403338
mov eax, dword [eax + 8]
mov dword [ebp - 0x5c], eax
push str.HTTPProxyServer
push edi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], ebx
jne 0x403362
push str.PrivateMirror
push edi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], ebx
jne 0x403362
push 1
jmp 0x403364
push 0
lea eax, [ebp - 0x58]
push eax
push str.mirrors.dat
call fcn.00406e30
add esp, 0xc
lea eax, [ebp - 0x34]
push 0x2e
push 0
push eax
call sub.MSVCR110.dll_memset
push str.DatabaseCustomURL
push edi
call sub.libav.dll_Ordinal_44283
mov esi, eax
add esp, 0x14
cmp dword [esi + 0x18], ebx
je 0x4033c3
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
push dword [ebp - 0x5c]
push edi
push eax
push dword [esi + 8]
call fcn.00405310
mov esi, dword [esi + 0x28]
add esp, 0x14
test eax, eax
mov dword [ebp - 0x70], eax
mov eax, 1
cmove ebx, eax
test esi, esi
jne 0x403397
jmp 0x4033c9
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x70], eax
push str.update_db
push edi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
mov dword [ebp - 0x74], eax
je 0x40361f
mov esi, dword [eax + 8]
mov edx, str.custom
mov ecx, esi
mov edi, edi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x403410
test al, al
je 0x40340c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x403410
add ecx, 2
add edx, 2
test al, al
jne 0x4033f0
xor eax, eax
jmp 0x403415
sbb eax, eax
or eax, 1
test eax, eax
je 0x4035bb
mov ecx, str.main
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403444
test dl, dl
je 0x403440
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403444
add eax, 2
add ecx, 2
test dl, dl
jne 0x403424
xor eax, eax
jmp 0x403449
sbb eax, eax
or eax, 1
test eax, eax
je 0x4034e8
mov ecx, str.daily
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403478
test dl, dl
je 0x403474
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403478
add eax, 2
add ecx, 2
test dl, dl
jne 0x403458
xor eax, eax
jmp 0x40347d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4034e8
mov ecx, str.safebrowsing
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4034a8
test dl, dl
je 0x4034a4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4034a8
add eax, 2
add ecx, 2
test dl, dl
jne 0x403488
xor eax, eax
jmp 0x4034ad
sbb eax, eax
or eax, 1
test eax, eax
je 0x4034e8
mov ecx, str.bytecode
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4034d8
test dl, dl
je 0x4034d4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4034d8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4034b8
xor eax, eax
jmp 0x4034dd
sbb eax, eax
or eax, 1
test eax, eax
je 0x4034e8
mov eax, 1
jmp 0x4034ea
xor eax, eax
push dword [ebp + 0x10]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push eax
push 0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x64]
push 0
push edi
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x6c]
push esi
call fcn.00405a30
mov esi, eax
add esp, 0x30
cmp esi, 0x32
jg 0x40357f
test esi, esi
mov eax, 1
cmove ebx, eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x4033e4
lea eax, [ebp - 0x58]
push eax
push 0x4139a0
push str.mirrors.dat
call fcn.004072a0
lea eax, [ebp - 0x58]
push eax
call fcn.00406d00
push 0x413ba0
call sub.libav.dll_Ordinal_44210
add esp, 0x14
call fcn.00402e40
test eax, eax
jns 0x40387f
pop edi
pop esi
mov eax, 0x40
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x58]
push eax
push 0x4139a0
push str.mirrors.dat
call fcn.004072a0
lea eax, [ebp - 0x58]
push eax
call fcn.00406d00
push 0x413ba0
call sub.libav.dll_Ordinal_44210
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push str.DatabaseCustomURL
push edi
call sub.libav.dll_Ordinal_44283
cmp dword [eax + 0x18], 0
mov ebx, dword [ebp - 0x70]
mov esi, dword [sym.imp.MSVCR110.dll_free]
mov ecx, 0x38
push 0
cmove ebx, ecx
call esi
push 0
call esi
lea eax, [ebp - 0x58]
push eax
push 0x4139a0
push str.mirrors.dat
call fcn.004072a0
lea eax, [ebp - 0x58]
push eax
call fcn.00406d00
push 0x413ba0
call sub.libav.dll_Ordinal_44210
add esp, 0x24
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push 0
push dword [ebp - 0x60]
push eax
push 0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x64]
push 0
push edi
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x6c]
push str.main
call fcn.00405a30
mov esi, eax
add esp, 0x30
cmp esi, 0x32
jg 0x40357f
push dword [ebp + 0x10]
mov eax, 1
push 0
push dword [ebp - 0x60]
test esi, esi
cmove ebx, eax
lea eax, [ebp - 0x58]
push eax
push 0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x64]
push 0
push edi
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x6c]
push str.daily
call fcn.00405a30
mov esi, eax
add esp, 0x30
cmp esi, 0x32
jg 0x40357f
mov eax, 1
push str.SafeBrowsing
test esi, esi
push edi
cmove ebx, eax
call sub.libav.dll_Ordinal_44283
mov edi, dword [sym.imp.MSVCR110.dll__unlink]
add esp, 8
cmp dword [eax + 0x18], 0
jne 0x4036fb
push 4
push str.safebrowsing.cvd
call sub.libav.dll_Ordinal_44340
add esp, 8
test eax, eax
jne 0x4036db
mov eax, str.safebrowsing.cvd
push eax
call edi
add esp, 4
jmp 0x40373e
push 4
push str.safebrowsing.cld
call sub.libav.dll_Ordinal_44340
add esp, 8
test eax, eax
jne 0x40373e
mov eax, str.safebrowsing.cld
push eax
call edi
add esp, 4
jmp 0x40373e
push dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push 0
push dword [ebp - 0x60]
push eax
push 0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x64]
push 0
push dword [ebp - 0x68]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x6c]
push str.safebrowsing
call fcn.00405a30
mov esi, eax
add esp, 0x30
cmp esi, 0x32
jg 0x40357f
test esi, esi
mov eax, 1
cmove ebx, eax
push str.Bytecode
push dword [ebp - 0x68]
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
jne 0x4037fa
push 4
push str.bytecode.cvd
call sub.libav.dll_Ordinal_44340
add esp, 8
test eax, eax
jne 0x403772
mov eax, str.bytecode.cvd
jmp 0x40378a
push 4
push str.bytecode.cld
call sub.libav.dll_Ordinal_44340
add esp, 8
test eax, eax
jne 0x403790
mov eax, str.bytecode.cld
push eax
call edi
add esp, 4
mov edi, dword [ebp - 0x68]
push str.ExtraDatabase
push edi
call sub.libav.dll_Ordinal_44283
mov esi, eax
add esp, 8
cmp dword [esi + 0x18], 0
je 0x403533
lea ecx, [ecx]
push dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push 1
push dword [ebp - 0x60]
push eax
push 0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x64]
push 0
push edi
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x6c]
push dword [esi + 8]
call fcn.00405a30
mov edi, eax
add esp, 0x30
cmp edi, 0x32
jg 0x403843
mov esi, dword [esi + 0x28]
test edi, edi
mov edi, dword [ebp - 0x68]
mov eax, 1
cmove ebx, eax
test esi, esi
jne 0x4037b0
jmp 0x403533
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x68]
push 0
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push eax
push 0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x64]
push 0
push edi
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x6c]
push str.bytecode
call fcn.00405a30
mov esi, eax
add esp, 0x30
cmp esi, 0x32
jg 0x40357f
test esi, esi
mov eax, 1
cmove ebx, eax
jmp 0x403793
lea eax, [ebp - 0x58]
push eax
push 0x4139a0
push str.mirrors.dat
call fcn.004072a0
lea eax, [ebp - 0x58]
push eax
call fcn.00406d00
push 0x413ba0
call sub.libav.dll_Ordinal_44210
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4038d2
push str.HTTPProxyServer
push edi
call sub.libav.dll_Ordinal_44283
push str.NotifyClamd
push edi
call sub.libav.dll_Ordinal_44283
add esp, 0x10
cmp dword [eax + 0x1c], 0
je 0x4038ad
push dword [eax + 8]
call fcn.00407cf0
add esp, 4
push str.OnUpdateExecute
push edi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
je 0x4038d2
push edi
push dword [eax + 8]
push str.OnUpdateExecute
call fcn.00401070
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040a4d6
mov esp, ebp
pop ebp
ret