Function at 0x4136d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5422d8
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.004079f0
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 0x413742
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 0x413776
test dx, dx
je 0x413772
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413776
add eax, 4
add ecx, 4
test dx, dx
jne 0x413750
xor eax, eax
jmp 0x41377b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x41392b
call fcn.0040e9a0
cmp eax, 2
jne 0x4137b5
call fcn.0040b230
call fcn.00407fe0
call fcn.004082d0
call fcn.004085c0
push 1
call fcn.004088e0
add esp, 4
call fcn.00408c50
lea ebx, [ebp - 0x1c]
call fcn.0040d1e0
mov dword [ebp - 4], 1
call fcn.0040d7c0
call fcn.0040da00
call fcn.0040dcf0
call fcn.0040dfe0
call fcn.0040e300
call fcn.0040e560
call fcn.00417597
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4137fc
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.005172f0
add esp, 8
test eax, eax
jne 0x41382e
or eax, 0xffffffff
jmp 0x413832
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 0x413885
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 0x4138a8
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.0040aaf0
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.00412ec0
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 0x413905
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 0x41392b
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