Function at 0x4031d0
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 0x403219
mov dword [ebp - 0x60], 1
cmp dword [eax + 0x14], ebx
je 0x40321c
mov dword [ebp - 0x60], ebx
push 0x4139a0
call sub.libav.dll_Ordinal_44203
mov esi, eax
add esp, 4
test esi, esi
jne 0x403245
pop edi
pop esi
mov eax, 0x39
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a436
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 0x40322f
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 0x403298
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 0x4032c2
push str.PrivateMirror
push edi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], ebx
jne 0x4032c2
push 1
jmp 0x4032c4
push 0
lea eax, [ebp - 0x58]
push eax
push str.mirrors.dat
call fcn.00406d90
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 0x403323
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
push dword [ebp - 0x5c]
push edi
push eax
push dword [esi + 8]
call fcn.00405270
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 0x4032f7
jmp 0x403329
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 0x40357f
mov esi, dword [eax + 8]
mov edx, str.custom
mov ecx, esi
mov edi, edi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x403370
test al, al
je 0x40336c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x403370
add ecx, 2
add edx, 2
test al, al
jne 0x403350
xor eax, eax
jmp 0x403375
sbb eax, eax
or eax, 1
test eax, eax
je 0x40351b
mov ecx, str.main
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4033a4
test dl, dl
je 0x4033a0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4033a4
add eax, 2
add ecx, 2
test dl, dl
jne 0x403384
xor eax, eax
jmp 0x4033a9
sbb eax, eax
or eax, 1
test eax, eax
je 0x403448
mov ecx, str.daily
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4033d8
test dl, dl
je 0x4033d4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4033d8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4033b8
xor eax, eax
jmp 0x4033dd
sbb eax, eax
or eax, 1
test eax, eax
je 0x403448
mov ecx, str.safebrowsing
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403408
test dl, dl
je 0x403404
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403408
add eax, 2
add ecx, 2
test dl, dl
jne 0x4033e8
xor eax, eax
jmp 0x40340d
sbb eax, eax
or eax, 1
test eax, eax
je 0x403448
mov ecx, str.bytecode
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403438
test dl, dl
je 0x403434
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403438
add eax, 2
add ecx, 2
test dl, dl
jne 0x403418
xor eax, eax
jmp 0x40343d
sbb eax, eax
or eax, 1
test eax, eax
je 0x403448
mov eax, 1
jmp 0x40344a
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.00405990
mov esi, eax
add esp, 0x30
cmp esi, 0x32
jg 0x4034df
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 0x403344
lea eax, [ebp - 0x58]
push eax
push 0x4139a0
push str.mirrors.dat
call fcn.00407200
lea eax, [ebp - 0x58]
push eax
call fcn.00406c60
push 0x413ba0
call sub.libav.dll_Ordinal_44210
add esp, 0x14
call fcn.00402da0
test eax, eax
jns 0x4037df
pop edi
pop esi
mov eax, 0x40
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a436
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x58]
push eax
push 0x4139a0
push str.mirrors.dat
call fcn.00407200
lea eax, [ebp - 0x58]
push eax
call fcn.00406c60
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.0040a436
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.00407200
lea eax, [ebp - 0x58]
push eax
call fcn.00406c60
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.0040a436
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.00405990
mov esi, eax
add esp, 0x30
cmp esi, 0x32
jg 0x4034df
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.00405990
mov esi, eax
add esp, 0x30
cmp esi, 0x32
jg 0x4034df
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 0x40365b
push 4
push str.safebrowsing.cvd
call sub.libav.dll_Ordinal_44340
add esp, 8
test eax, eax
jne 0x40363b
mov eax, str.safebrowsing.cvd
push eax
call edi
add esp, 4
jmp 0x40369e
push 4
push str.safebrowsing.cld
call sub.libav.dll_Ordinal_44340
add esp, 8
test eax, eax
jne 0x40369e
mov eax, str.safebrowsing.cld
push eax
call edi
add esp, 4
jmp 0x40369e
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.00405990
mov esi, eax
add esp, 0x30
cmp esi, 0x32
jg 0x4034df
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 0x40375a
push 4
push str.bytecode.cvd
call sub.libav.dll_Ordinal_44340
add esp, 8
test eax, eax
jne 0x4036d2
mov eax, str.bytecode.cvd
jmp 0x4036ea
push 4
push str.bytecode.cld
call sub.libav.dll_Ordinal_44340
add esp, 8
test eax, eax
jne 0x4036f0
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 0x403493
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.00405990
mov edi, eax
add esp, 0x30
cmp edi, 0x32
jg 0x4037a3
mov esi, dword [esi + 0x28]
test edi, edi
mov edi, dword [ebp - 0x68]
mov eax, 1
cmove ebx, eax
test esi, esi
jne 0x403710
jmp 0x403493
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.00405990
mov esi, eax
add esp, 0x30
cmp esi, 0x32
jg 0x4034df
test esi, esi
mov eax, 1
cmove ebx, eax
jmp 0x4036f3
lea eax, [ebp - 0x58]
push eax
push 0x4139a0
push str.mirrors.dat
call fcn.00407200
lea eax, [ebp - 0x58]
push eax
call fcn.00406c60
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.0040a436
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x403832
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 0x40380d
push dword [eax + 8]
call fcn.00407c50
add esp, 4
push str.OnUpdateExecute
push edi
call sub.libav.dll_Ordinal_44283
add esp, 8
cmp dword [eax + 0x18], 0
je 0x403832
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.0040a436
mov esp, ebp
pop ebp
ret