Function at 0x421410
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5202b2
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x58c250]
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 ebx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 1
lea edx, [ebp - 0x218]
mov eax, esi
sub edx, esi
jmp 0x421470
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x421470
lea eax, [ebp - 0x218]
add eax, 0xfffffffe
jmp 0x421490
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x421490
mov ecx, dword [0x53c930]
mov edx, dword [0x53c934]
mov dword [eax], ecx
mov ecx, dword [0x53c938]
mov dword [eax + 4], edx
push 0
lea edx, [ebp - 0x218]
push edx
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4214d0
mov eax, dword [0x53bb00]
mov dword [edi], eax
mov eax, 0x53c3e0
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4214f0
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x421506
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 - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x421540
mov eax, dword [ebp - 0x224]
mov edx, dword [0x53bb00]
add eax, 0x410
mov dword [edi], edx
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421561
lea edi, [ebp - 0x218]
sub eax, esi
add edi, 0xfffffffe
jmp 0x421580
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x421580
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x218]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, ebx
call edx
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.0041f3f0
mov byte [ebp - 4], 4
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
sete byte [ebp - 0x21d]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42161f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x21d], 0
je 0x421667
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [ebp - 0x21c]
push eax
mov dword [ebp - 0x228], ecx
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 7
lea edx, [ebp - 0x21c]
lea ecx, [ebx + 4]
push edx
call fcn.004022d0
jmp 0x4217fe
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.0041f3f0
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0041f290
add esp, 8
mov byte [ebp - 0x21d], al
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4216b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x21d], 0
mov eax, dword [ebp - 0x224]
push eax
jne 0x42182b
push ecx
lea edx, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x228], esp
push edx
call fcn.00411460
mov byte [ebp - 4], 0xb
mov eax, dword [ebx]
mov byte [ebp - 4], 3
mov eax, dword [eax + 0xc]
mov ecx, ebx
call eax
test eax, eax
je 0x4217bb
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0xd
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x228]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x21c]
push str.Error_flushing__s_tag
push ecx
call fcn.00401f60
add esp, 0xc
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x21c]
push ecx
mov edi, esp
add esi, 0xfffffff0
mov dword [ebp - 0x228], esp
push esi
mov dword [ebp - 0x230], edi
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x224]
call fcn.0041f700
mov byte [ebp - 4], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4217bb
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
push eax
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x21c]
lea ecx, [ebx + 4]
push edx
call fcn.004022d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421824
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push ecx
mov ecx, ebx
call edx
cmp byte [ebp + 0x10], 0
je 0x421944
mov eax, dword [ebp - 0x224]
push eax
push ecx
lea edx, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x230], esp
push edx
call fcn.00411460
mov byte [ebp - 4], 0x16
mov eax, dword [ebx]
mov byte [ebp - 4], 3
mov eax, dword [eax + 0xc]
mov ecx, ebx
call eax
test eax, eax
je 0x42193b
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0x18
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x228]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 0x19
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x21c]
push str.Error_flushing__s_tag
push ecx
call fcn.00401f60
add esp, 0xc
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4218e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x21c]
push ecx
mov edi, esp
add esi, 0xfffffff0
mov dword [ebp - 0x230], esp
push esi
mov dword [ebp - 0x228], edi
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x224]
call fcn.0041f700
mov byte [ebp - 4], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42193b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42196a
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 - 0x240]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x421991
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
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.004f0194
mov esp, ebp
pop ebp
ret 0xc