Function at 0x412db0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x57f8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e4a44]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov esi, ecx
mov edi, edx
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x413018
push str.0xyzwh
push eax
call fcn.00551707
add esp, 8
test eax, eax
setne al
test al, al
je 0x413018
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jle 0x413018
push str.0xyzwh
push eax
call fcn.00551707
add esp, 8
test eax, eax
setne al
test al, al
je 0x413018
push 0x5af6f0
lea eax, [edi + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00413530
add esp, 0xc
push esi
push eax
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x3c], 0
call fcn.00413470
add esp, 0xc
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push ecx
call ebx
test eax, eax
jne 0x412e9e
mov edx, dword [esp + 0x38]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [edi + 0x78]
push eax
mov ecx, esi
call fcn.00413770
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.00402bc0
push 0x5af6f0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00413530
add esp, 0xc
push ebp
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x3c], 3
call fcn.00413470
add esp, 0xc
mov byte [esp + 0x30], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412f05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call ebx
test eax, eax
jne 0x412f1c
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [edi + 0x98]
push eax
mov ecx, ebp
call fcn.00413770
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00402bc0
mov esi, dword [esp + 0x3c]
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
jle 0x412fcb
push str.0xyzwh
push esi
call fcn.00413720
add esp, 8
test al, al
je 0x412fcb
push 0x5af6f0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00413530
add esp, 0xc
push esi
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x3c], 6
call fcn.00413470
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 8
call fcn.00402ba0
mov eax, dword [esp + 0x3c]
push eax
call ebx
test eax, eax
jne 0x412fa8
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add edi, 0xb8
push edi
mov ecx, esi
call fcn.00413770
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.00402bc0
lea ecx, [esp + 0x3c]
call fcn.00402ba0
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413018
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8