Function at 0x413570
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542258
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00407970
add esp, 4
mov edi, dword [ebp + 8]
add edi, 0x3d4
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00404790
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4135e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov ecx, 0x5704e4
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413616
test dx, dx
je 0x413612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413616
add eax, 4
add ecx, 4
test dx, dx
jne 0x4135f0
xor eax, eax
jmp 0x41361b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x4137cb
call fcn.0040e930
cmp eax, 2
jne 0x413655
call fcn.0040b1c0
call fcn.00407f60
call fcn.00408250
call fcn.00408540
push 1
call fcn.00408860
add esp, 4
call fcn.00408bd0
lea ebx, [ebp - 0x1c]
call fcn.0040d170
mov dword [ebp - 4], 1
call fcn.0040d750
call fcn.0040d990
call fcn.0040dc80
call fcn.0040df70
call fcn.0040e290
call fcn.0040e4f0
call fcn.00417515
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41369c
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402240
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.00517280
add esp, 8
test eax, eax
jne 0x4136ce
or eax, 0xffffffff
jmp 0x4136d2
sub eax, esi
sar eax, 1
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004037c0
push str.exe
push eax
lea edx, [ebp - 0x14]
mov bl, 3
push edx
mov byte [ebp - 4], bl
call fcn.00404260
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00404790
mov byte [ebp - 4], bl
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 0x413725
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413748
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x3c8]
push ecx
push ecx
lea edx, [ebp - 0x10]
mov dword [ebp + 8], esp
mov ecx, esp
push edx
call fcn.00404900
call fcn.0040aa80
mov eax, dword [edi]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push edi
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00412d60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4137a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4137cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4