Function at 0x52de30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65c5a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 1
lea edx, [ebp - 0x234]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x52de75
lea eax, [ebp - 0x234]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x52de90
mov ecx, dword [str.Data]
mov edx, dword [0x67a948]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [eax], ecx
mov ecx, dword [0x67a94c]
mov dword [eax + 4], edx
push 0
lea edx, [ebp - 0x234]
push edx
mov dword [eax + 8], ecx
call ebx
lea edi, [ebp - 0x234]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x52ded0
mov eax, dword [0x66ea40]
mov dword [edi], eax
mov eax, str.Last
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x52def0
lea edi, [ebp - 0x234]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x52df06
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x234]
push ecx
call ebx
lea edi, [ebp - 0x234]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x52df36
mov eax, dword [ebp - 0x10]
mov edx, dword [0x66ea40]
add eax, 0x410
mov dword [edi], edx
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x52df54
lea edi, [ebp - 0x234]
sub eax, esi
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x52df70
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x234]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call edx
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0052c5d0
mov byte [ebp - 4], 4
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
sete bl
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52dffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x52e032
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [ebp + 0xc]
push eax
mov dword [ebp - 0x18], ecx
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 7
lea edx, [ebp + 0xc]
lea ecx, [esi + 4]
push edx
call fcn.004078d0
jmp 0x52e18a
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0052c5d0
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00426560
add esp, 8
mov bl, al
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52e073
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
push eax
test bl, bl
jne 0x52e1b1
push ecx
lea edx, [ebp - 0x234]
mov ecx, esp
mov dword [ebp + 0xc], esp
push edx
call fcn.0040bea0
mov byte [ebp - 4], 0xb
mov eax, dword [esi]
mov byte [ebp - 4], 3
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
test eax, eax
je 0x52e156
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xd
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call edx
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0xc]
push str.Error_flushing__s_tag
push ecx
call fcn.00405ab0
add esp, 0xc
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52e10c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0xc]
push ecx
mov ebx, esp
add edi, 0xfffffff0
mov dword [ebp - 0x18], esp
push edi
mov dword [ebp - 0x1c], ebx
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
call fcn.0052c770
mov byte [ebp - 4], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e156
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x14
lea edx, [ebp + 0xc]
lea ecx, [esi + 4]
push edx
call fcn.004078d0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e1ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 8]
push ecx
mov ecx, esi
call edx
cmp byte [ebp + 0x10], 0
je 0x52e2ac
mov eax, dword [ebp - 0x10]
push eax
push ecx
lea edx, [ebp - 0x234]
mov ecx, esp
mov dword [ebp + 0x10], esp
push edx
call fcn.0040bea0
mov byte [ebp - 4], 0x16
mov eax, dword [esi]
mov byte [ebp - 4], 3
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
test eax, eax
je 0x52e2a3
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0x18
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call edx
mov byte [ebp - 4], 0x19
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x10]
push str.Error_flushing__s_tag
push ecx
call fcn.00405ab0
add esp, 0xc
mov byte [ebp - 4], 0x18
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52e259
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x10]
push ecx
mov ebx, esp
add edi, 0xfffffff0
mov dword [ebp + 0xc], esp
push edi
mov dword [ebp - 0x1c], ebx
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x10]
call fcn.0052c770
mov byte [ebp - 4], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e2a3
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e2cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x52e2f3
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc