Function at 0x40a790
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487810
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040a190
test al, al
je 0x40a7d7
xor eax, 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
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
cmp ecx, 3
jl 0x40a813
test ecx, ecx
js 0x40aa28
cmp word [edx], 0x5c
jne 0x40a813
cmp ecx, 1
jl 0x40aa32
cmp word [edx + 2], 0x5c
jne 0x40a813
cmp ecx, 2
jl 0x40aa3c
cmp word [edx + 4], 0x3f
mov byte [ebp - 0xd], 1
jne 0x40a817
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.0040a3e0
cmp dword [ebp - 0x2c], 0
jle 0x40aa46
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ecx]
mov ecx, dword [ebx - 0x10]
lea edi, [ebx - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x40a86b
cmp ecx, dword [edi]
jne 0x40a86b
lock inc dword [eax]
jmp 0x40a895
mov eax, dword [ecx]
lea esi, [edi + 4]
push 2
push dword [esi]
call dword [eax]
mov edi, eax
test edi, edi
je 0x40aa52
mov eax, dword [esi]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi]
inc edx
push edx
push ebx
call fcn.004023d0
add esp, 8
add edi, 0x10
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
xor eax, eax
mov ecx, dword [ebp - 0x2c]
dec ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ecx
lea ebx, [eax + 1]
cmp ecx, ebx
jle 0x40a9df
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x40a8d5
cmp ecx, dword [esi]
jne 0x40a8d5
lock inc dword [eax]
jmp 0x40a906
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40aa52
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
lea ecx, [esi + 0x10]
mov edx, dword [esi + 4]
inc edx
push edx
push ecx
lea ecx, [eax + 0x10]
call fcn.004023d0
mov esi, dword [ebp - 0x20]
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
push 1
push 0x4a5124
call fcn.00402280
test ebx, ebx
js 0x40aa46
cmp ebx, dword [ebp - 0x2c]
jge 0x40aa46
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.00402280
mov esi, dword [ebp - 0x1c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a968
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0xb7
je 0x40a968
cmp byte [ebp - 0xd], 0
je 0x40a9b3
push 1
push 0x4a5124
lea ecx, [ebp - 0x14]
call fcn.00402280
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + ebx*4]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.00402280
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a9a5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0x24]
jge 0x40a9dc
jmp 0x40a8b6
cmp ebx, 1
jle 0x40a9c0
lea ecx, [ebp - 0x14]
call fcn.00409e10
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a9dc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
xor esi, esi
cmp eax, 0xb7
cmovne esi, eax
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40aa05
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402e80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004023a0
push 0x80070057
call fcn.004023a0
push 0x80070057
call fcn.004023a0
push 1
push 0xc000008c
call fcn.004036b0
call fcn.004023c0
int3