Function at 0x40de80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa52538
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0xa93064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.0040f330
cmp eax, 0xffffffff
je 0x40ded0
test al, 0x10
je 0x40ded0
mov al, 1
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
push esi
call fcn.004104b0
test al, al
je 0x40def0
xor al, al
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
push esi
call fcn.00410140
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
call fcn.0040a4a0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040b660
test eax, eax
js 0x40df37
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
cmp eax, ecx
jne 0x40df37
cmp edx, 1
jne 0x40df2b
mov bl, dl
jmp 0x40e0d4
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x14], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040a320
mov esi, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x18]
cmp byte [0xa976d8], 0
jne 0x40df8d
push ebx
lea eax, [ebp - 0x30]
push eax
call fcn.0040bbf0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x30]
mov edi, eax
call fcn.009c06b5
add esp, 4
test edi, edi
jne 0x40e053
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40df9e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e053
call edi
cmp eax, 0xb7
jne 0x40dfee
lea ecx, [ebp - 0x68]
call fcn.0040e7b0
lea ecx, [ebp - 0x40]
call fcn.0040a500
push 0
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040ec50
mov byte [ebp - 4], 1
push dword [ebp - 0x40]
test al, al
jne 0x40dfdb
call fcn.009c06b5
add esp, 4
jmp 0x40dfee
mov ebx, dword [ebp - 0x48]
shr ebx, 4
call fcn.009c06b5
add esp, 4
and bl, 1
jne 0x40e053
call edi
cmp eax, 0xb7
je 0x40e0f5
lea ecx, [ebp - 0x18]
call fcn.0040b660
mov esi, eax
test esi, esi
js 0x40e0f5
je 0x40e0f5
mov ebx, dword [ebp - 0x18]
cmp esi, 1
jne 0x40e030
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x40e0f5
cmp eax, 0x2f
je 0x40e0f5
lea eax, [esi + 1]
cmp dword [ebp + 8], eax
jae 0x40e0f5
cmp esi, dword [ebp - 0x14]
jae 0x40df53
xor eax, eax
mov dword [ebp - 0x14], esi
mov word [ebx + esi*2], ax
jmp 0x40df50
cmp esi, dword [ebp - 0x20]
jge 0x40e0c7
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi*2]
add eax, 2
push eax
call fcn.0040fe00
test eax, eax
jns 0x40e078
mov esi, dword [ebp - 0x20]
jmp 0x40e07b
inc esi
add esi, eax
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.0040b690
cmp byte [0xa976d8], 0
jne 0x40e0b7
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
call fcn.0040bbf0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x30]
mov edi, eax
call fcn.009c06b5
add esp, 4
test edi, edi
jmp 0x40e0c0
push 0
push dword [ebp - 0x18]
call ebx
test eax, eax
je 0x40e0f5
cmp esi, dword [ebp - 0x20]
jl 0x40e060
mov bl, 1
push dword [ebp - 0x24]
call fcn.009c06b5
add esp, 4
push dword [ebp - 0x18]
call fcn.009c06b5
add esp, 4
mov al, bl
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
xor bl, bl
jmp 0x40e0c9