Function at 0x52cc82
Capabilities:
Create directory

Disassembly:
mov eax, 0x6dc387
call fcn.006899cc
sub esp, 0x630
cmp byte [0x7c2fb8], 0
je 0x52d069
push ebx
push esi
push edi
mov ecx, 0xf3
lea edi, [ebp - 0x63c]
mov esi, 0x718430
lea eax, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
push str.trusted
xor ebx, ebx
push eax
mov byte [0x7c2fb8], bl
movsw word es:[edi], word [esi]
call fcn.004848ce
cmp dword [ebp - 0x4c], 8
lea esi, [ebp - 0x60]
mov dword [ebp - 4], ebx
jb 0x52ccdb
mov esi, dword [ebp - 0x60]
push 0x105
push esi
lea eax, [ebp - 0x26c]
push eax
call fcn.00449524
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, bx
jne 0x52ccf2
sub edi, ecx
push 0x5c
sar edi, 1
pop eax
push esi
mov word [ebp + edi*2 - 0x26c], ax
call fcn.004704dc
test al, al
jne 0x52cdaa
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov eax, 0x104
sub eax, edi
push eax
lea eax, [ebp - 0x26a]
push str.bittorrent.crt
lea eax, [eax + edi*2]
push eax
call fcn.00449524
push 0x80
push 7
lea eax, [ebp - 0x26c]
push eax
call fcn.00470c47
mov dword [ebp - 0x10], eax
mov edi, 0x3ce
cmp eax, 0xffffffff
je 0x52cd75
push edi
lea ecx, [ebp - 0x63c]
push ecx
push eax
call fcn.0047116f
lea eax, [ebp - 0x10]
push eax
call fcn.00470bd9
push edi
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0052ca17
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0052d717
test al, al
je 0x52cd9d
lea ecx, [ebp - 0x20]
call fcn.0052d773
lea ecx, [ebp - 0x20]
call fcn.0052caee
jmp 0x52d05e
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
call fcn.004705e7
mov ebx, dword [ebp - 0x28]
mov eax, ebx
mov esi, dword [ebp - 0x2c]
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x52d00f
push 0x8000
call fcn.0046f1ab
mov ecx, dword [ebp - 0x2c]
mov ebx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x3c], eax
cmp ecx, eax
je 0x52cffe
mov edx, 0x104
lea esi, [ebp - 0x26a]
sub edx, edi
lea esi, [esi + edi*2]
mov dword [ebp - 0x40], edx
mov edi, 0x3ce
mov dword [ebp - 0x14], esi
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x52ce1f
mov eax, dword [ecx]
push edx
push eax
push esi
call fcn.00449524
push 0x80
push 4
lea eax, [ebp - 0x26c]
push eax
call fcn.00470c47
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x52cfe9
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0
push 0x8000
push ebx
push eax
call fcn.00470ec0
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.00470bd9
test esi, esi
jne 0x52cfe6
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x52cfe6
cmp esi, 0x1b
jb 0x52cef6
push 0x1b
push str._____BEGIN_CERTIFICATE_____
push ebx
call fcn.0068bdae
add esp, 0xc
test eax, eax
jne 0x52cef6
push 0x1b
pop edx
xor ecx, ecx
cmp esi, edx
jbe 0x52cedc
mov al, byte [edx + ebx]
cmp al, 0x2f
jb 0x52cea5
cmp al, 0x39
jbe 0x52ced3
cmp al, 0x41
jb 0x52cead
cmp al, 0x5a
jbe 0x52ced3
cmp al, 0x61
jb 0x52ceb5
cmp al, 0x7a
jbe 0x52ced3
cmp al, 0x2b
je 0x52ced3
cmp al, 0x3d
je 0x52ced3
cmp al, 0xa
je 0x52ced7
cmp al, 0xd
je 0x52ced7
cmp al, 9
je 0x52ced7
cmp al, 0xb
je 0x52ced7
cmp al, 0x20
jne 0x52cedc
jmp 0x52ced7
mov byte [ecx + ebx], al
inc ecx
inc edx
cmp edx, esi
jb 0x52ce9a
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
push ebx
push ecx
push ebx
call fcn.005a226f
test eax, eax
jne 0x52cfe6
mov esi, dword [ebp - 0x18]
test ebx, ebx
je 0x52cfe6
push esi
push ebx
lea ecx, [ebp - 0x20]
call fcn.0052ca17
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0052d717
test al, al
je 0x52cfda
mov edx, dword [ebp - 0x20]
xor ecx, ecx
movzx eax, byte [edx + ecx + 0xc3]
mov edx, 0x718414
cmp al, byte [edx + ecx]
mov edx, dword [ebp - 0x20]
jne 0x52cfbd
inc ecx
cmp ecx, 0xf
jne 0x52cf21
cmp esi, edi
jne 0x52cf59
push edi
lea eax, [ebp - 0x63c]
push ebx
push eax
call fcn.0068bdae
add esp, 0xc
test eax, eax
je 0x52cfbd
push 0x80
push 7
lea eax, [ebp - 0x26c]
push eax
call fcn.00470c47
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
je 0x52cf8b
push edi
lea ecx, [ebp - 0x63c]
push ecx
push eax
call fcn.0047116f
lea eax, [ebp - 0x38]
push eax
call fcn.00470bd9
push edi
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0052ca17
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.0052d717
test al, al
je 0x52cfb3
lea ecx, [ebp - 0x48]
call fcn.0052d773
lea ecx, [ebp - 0x48]
call fcn.0052caee
jmp 0x52cfda
lea ecx, [ebp - 0x20]
call fcn.0052d773
mov eax, dword [ebp - 0x20]
add eax, 0xc3
push eax
push str._s_trusted_n
call fcn.00412af0
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0052caee
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x40]
add ecx, 0x18
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x3c]
jne 0x52ce15
push 1
push ebx
call fcn.0046f19e
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
push 0x18
pop ecx
test esi, esi
je 0x52d05e
cmp esi, ebx
je 0x52d02a
mov ecx, esi
call fcn.0044823e
push 0x18
pop ecx
add esi, ecx
cmp esi, ebx
jne 0x52d017
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
sub eax, esi
mov dword [ebp - 0x18], esi
cdq
idiv ecx
imul eax, eax, 0x18
mov dword [ebp - 0x10], eax
cmp eax, 0x1000
jb 0x52d055
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0044810a
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push eax
push esi
call fcn.0068976d
pop ecx
pop ecx
lea ecx, [ebp - 0x60]
call fcn.0044823e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret