Function at 0x407410
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420260
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [eax + 4], ecx
mov eax, 7
mov dword [esp + 0x14], edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
mov word [esp + 0x68], cx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
mov word [esp + 0x4c], cx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov eax, edi
mov byte [esp + 0x90], 2
lea esi, [eax + 2]
jmp 0x4074a0
mov dx, word [eax]
add eax, 2
cmp dx, cx
jne 0x4074a0
sub eax, esi
sar eax, 1
push eax
push edi
lea esi, [esp + 0x50]
call fcn.004053a0
lea ebx, [ebx]
push 1
lea ebx, [esp + 0x4c]
call fcn.00409ee0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40761c
push ebx
lea eax, [esp + 0x4c]
push eax
xor ecx, ecx
lea esi, [esp + 0x34]
call fcn.00405f60
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 3
call fcn.00404d90
mov byte [esp + 0x90], 2
cmp dword [esp + 0x44], 8
jb 0x407518
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004127aa
add esp, 4
mov eax, dword [esp + 0x5c]
cmp ebx, eax
ja 0x40753c
or eax, 0xffffffff
lea esi, [esp + 0x48]
call fcn.00405440
lea ecx, [esp + 0x64]
push ecx
lea esi, [esp + 0x1c]
call fcn.00406080
jmp 0x4074c0
or edx, 0xffffffff
sub ebx, eax
sub edx, eax
cmp edx, ebx
ja 0x407550
call fcn.00412727
mov eax, dword [esp + 0x5c]
test ebx, ebx
jbe 0x407609
lea esi, [eax + ebx]
cmp esi, 0x7ffffffe
jbe 0x40756c
call fcn.00412727
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
cmp ecx, esi
jae 0x4075a6
push eax
push esi
lea eax, [esp + 0x50]
push eax
call fcn.004056e0
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
test esi, esi
jbe 0x407609
cmp ebx, 1
jne 0x4075d3
cmp ecx, 8
mov ecx, dword [esp + 0x4c]
jae 0x40759e
lea ecx, [esp + 0x4c]
mov word [ecx + eax*2], 0
jmp 0x4075f0
test esi, esi
jne 0x40758a
cmp ecx, 8
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], esi
jae 0x4075bb
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x64]
push ecx
lea esi, [esp + 0x1c]
mov word [eax], 0
call fcn.00406080
jmp 0x4074c0
cmp ecx, 8
mov ecx, dword [esp + 0x4c]
jae 0x4075e0
lea ecx, [esp + 0x4c]
lea edi, [ecx + eax*2]
xor eax, eax
mov ecx, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], esi
jae 0x407603
lea eax, [esp + 0x4c]
mov word [eax + esi*2], 0
lea ecx, [esp + 0x64]
push ecx
lea esi, [esp + 0x1c]
call fcn.00406080
jmp 0x4074c0
mov esi, dword [esp + 0x1c]
xor edi, edi
cmp esi, edi
je 0x407705
mov ecx, dword [esp + 0x20]
mov ebx, ecx
sub ebx, esi
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x407705
cmp eax, edi
je 0x407675
mov edx, dword [esp + 0x14]
push edx
lea eax, [ecx - 0x1c]
mov edi, ecx
call fcn.00406eb0
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub ecx, 0x1c
add esp, 4
mov dword [esp + 0x20], ecx
xor edi, edi
cmp esi, edi
jne 0x40767d
xor ebx, ebx
jmp 0x407694
mov ebx, ecx
sub ebx, esi
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
add ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x407703
lea edi, [ebx*8]
sub edi, ebx
add edi, edi
add edi, edi
jmp 0x4076b8
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4076d5
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4076de
call fcn.00412b4f
mov esi, dword [esp + 0x1c]
cmp dword [esi + edi + 0x18], 8
jb 0x4076eb
mov esi, dword [esi + edi + 4]
jmp 0x4076ef
lea esi, [esi + edi + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub ebx, 1
sub edi, 0x1c
cmp ebx, 0xffffffff
jne 0x4076b0
xor edi, edi
cmp byte [ebp + 0xc], 0
push edi
push 0x80
je 0x407728
cmp byte [ebp + 0x10], 0
push 3
push edi
je 0x40773a
mov eax, dword [esp + 0x24]
push 7
push 0x80000000
push eax
jmp 0x407746
cmp byte [ebp + 0x10], 0
push 4
push edi
je 0x40773a
push 1
push 0x80000000
jmp 0x407741
push 1
push 0xc0000000
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp dword [edx + 4], 0xffffffff
jne 0x4077cf
cmp eax, edi
je 0x407783
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
push ecx
call fcn.00406eb0
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor edi, edi
mov esi, 8
cmp dword [esp + 0x60], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
jb 0x4077a7
mov eax, dword [esp + 0x4c]
push eax
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], di
jb 0x4077cb
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x40783d
cmp eax, edi
je 0x4077f3
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
push edx
call fcn.00406eb0
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call fcn.004127aa
add esp, 4
xor edi, edi
mov esi, 8
cmp dword [esp + 0x60], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
jb 0x407817
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], di
jb 0x40783b
mov edx, dword [esp + 0x68]
push edx
call fcn.004127aa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0041288d
mov esp, ebp
pop ebp
ret 0xc