Function at 0x40a440
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ff28
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x58deec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x38]
call fcn.00429feb
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.0040f790
push 0x541378
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 1
call fcn.00405830
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004056a0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call fcn.00405830
lea ecx, [ebp - 0x24]
call fcn.0040f710
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040f890
cmp dword [ebp - 0x30], 2
jne 0x40a659
push 0x541364
lea ecx, [ebp - 0x14]
call fcn.00405830
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004056a0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x30], 0
jg 0x40a541
call fcn.004169da
push ecx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx]
sub eax, 0x10
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call fcn.00405390
add eax, 0x10
add esp, 4
lea ecx, [ebp - 0x24]
mov dword [esi], eax
call fcn.0040f710
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x38]
call fcn.0042a082
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x24]
call fcn.0040f890
call fcn.0041e837
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a597
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
lea ecx, [eax - 1]
xor esi, esi
mov byte [ebp - 4], 4
test ecx, ecx
jle 0x40a605
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esp, [esp]
test esi, esi
js 0x40a53c
cmp esi, eax
jge 0x40a53c
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00408cc0
mov eax, dword [ebp - 0x10]
push 0
push eax
call edi
push 1
push 0x541364
lea ecx, [ebp - 0x10]
call fcn.00408cc0
mov eax, dword [ebp - 0x30]
inc esi
lea ecx, [eax - 1]
cmp esi, ecx
jl 0x40a5c0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a628
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0040f490
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0042a229
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0040f490
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0042a229
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret