Function at 0x414240
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578258
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
xor ecx, ecx
push eax
or eax, 0xffffffff
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], cx
call fcn.004035f0
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x4c]
mov ecx, edi
cmp edx, 8
jae 0x4142a0
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4142dd
mov ecx, edi
cmp edx, 8
jae 0x4142b5
lea ecx, [ebp - 0x4c]
lea eax, [ecx + eax*2]
mov ecx, edi
cmp edx, 8
jae 0x4142c2
lea ecx, [ebp - 0x4c]
cmp eax, esi
jne 0x4142ca
xor eax, eax
jmp 0x4142ce
sub eax, ecx
sar eax, 1
push 0x5c
mov ebx, eax
lea edi, [ebp - 0x4c]
call fcn.00415300
mov eax, dword [ebp - 0x3c]
xor ebx, ebx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], esi
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], dx
xor ecx, ecx
mov byte [ebp - 4], 2
lea esi, [ebx + 1]
mov dword [ebp - 0x50], ecx
test eax, eax
je 0x4143b5
jmp 0x414313
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4c]
cmp edx, 8
jae 0x414321
lea eax, [ebp - 0x4c]
cmp word [eax + ecx*2], 0x5c
je 0x414363
mov eax, dword [ebp - 0x4c]
cmp edx, 8
jae 0x414333
lea eax, [ebp - 0x4c]
movzx edx, word [eax + ecx*2]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov eax, ecx
cmp edi, 8
jae 0x414347
lea eax, [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
lea eax, [eax + ebx*2]
cmp edi, 8
jae 0x414355
lea ecx, [ebp - 0x30]
test eax, eax
jne 0x41435c
push edx
jmp 0x414398
sub eax, ecx
sar eax, 1
push edx
jmp 0x414398
lea ecx, [ebp - 0x30]
lea ebx, [ebp - 0x60]
call fcn.004029a0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov eax, edx
cmp ecx, 8
jae 0x41437e
lea eax, [ebp - 0x30]
mov edi, dword [ebp - 0x20]
cmp ecx, 8
lea eax, [eax + edi*2]
mov ecx, edx
jae 0x41438e
lea ecx, [ebp - 0x30]
test eax, eax
je 0x414396
sub eax, ecx
sar eax, 1
push 0x5c
mov ebx, eax
lea edi, [ebp - 0x30]
call fcn.00415300
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x3c]
jb 0x414310
mov ebx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
cmp edi, ebx
je 0x4143f6
cmp dword [edi + 0x14], 8
jb 0x4143c6
mov eax, dword [edi]
jmp 0x4143c8
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
neg esi
sbb esi, esi
add edi, 0x1c
neg esi
cmp edi, ebx
jne 0x4143bc
test esi, esi
jne 0x4143f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4143f6
mov esi, 1
cmp dword [ebp - 0x1c], 8
jb 0x414408
mov eax, dword [ebp - 0x30]
push eax
call fcn.0044c90f
add esp, 4
mov edi, dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], cx
test edi, edi
je 0x41445e
cmp edi, ebx
je 0x414455
cmp dword [edi + 0x14], 8
jb 0x414438
mov edx, dword [edi]
push edx
call fcn.0044c90f
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
add edi, 0x1c
cmp edi, ebx
jne 0x414427
mov edi, dword [ebp - 0x60]
push edi
call fcn.0044c90f
add esp, 4
cmp dword [ebp - 0x38], 8
jb 0x414470
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044c90f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret