Function at 0x409560
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x42e449
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x358
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x378]
lea edi, [esp + 0x128]
xor ebp, ebp
mov eax, dword [edx - 8]
mov dword [esp + 0x370], ebp
mov dword [esp + 0x18], ebp
lea ecx, [eax + 1]
xor eax, eax
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
lea esi, [esp + 0x128]
and ecx, 3
rep stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov edx, esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x43c620]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x128]
mov byte [esp + 0x370], 1
test al, al
je 0x409837
mov ecx, dword [0x43c620]
mov dword [esp + 0x10], ecx
mov bl, byte [esp + edi + 0x128]
lea eax, [esp + 0x10]
movsx edx, bl
push edx
push 0x43a59c
push eax
mov byte [esp + 0x37c], 2
call fcn.0042187d
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, 0x43add8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409670
test cl, cl
je 0x40966c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409670
add eax, 2
add esi, 2
test cl, cl
jne 0x40964c
xor eax, eax
jmp 0x409675
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x409682
inc eax
mov dword [esp + 0x18], eax
cmp eax, 1
jle 0x409723
cmp eax, dword [esp + 0x14]
jle 0x409723
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + ebp + 0x2c], 0
call fcn.00425ff4
push 0x43aae4
lea ecx, [esp + 0x20]
mov byte [esp + 0x374], 3
call fcn.00426288
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x228]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4096e3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x409712
lea eax, [esp + 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x19c]
lea ecx, [edx + eax*4 + 0x1b0]
inc eax
mov dword [edx + 0x19c], eax
lea edx, [esp + 0x28]
push edx
call fcn.0042610f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x370], 2
call fcn.00425fca
mov eax, dword [esp + 0x10]
mov esi, 0x43add8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409750
test cl, cl
je 0x40974c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409750
add eax, 2
add esi, 2
test cl, cl
jne 0x40972c
xor eax, eax
jmp 0x409755
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40977d
movsx eax, byte [esp + edi + 0x129]
mov byte [esp + ebp + 0x28], 0x5c
inc ebp
inc edi
push eax
lea ecx, [esp + 0x14]
push 0x43a59c
push ecx
call fcn.0042187d
add esp, 0xc
jmp 0x409783
mov byte [esp + ebp + 0x28], bl
inc ebp
inc edi
mov eax, dword [esp + 0x10]
mov esi, 0x43add8
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4097b4
test cl, cl
je 0x4097b0
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4097b4
add eax, 2
add esi, 2
test cl, cl
jne 0x40978c
xor eax, eax
jmp 0x4097b9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x409813
movsx eax, byte [esp + edi + 0x129]
inc edi
push eax
lea ecx, [esp + 0x14]
push 0x43a59c
push ecx
call fcn.0042187d
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, 0x43add8
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40980a
test cl, cl
je 0x409806
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40980a
add eax, 2
add esi, 2
test cl, cl
jne 0x4097e2
xor eax, eax
jmp 0x40980f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4097bd
lea ecx, [esp + 0x10]
mov byte [esp + 0x370], 1
call fcn.00425fca
mov al, byte [esp + edi + 0x128]
test al, al
jne 0x409614
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
mov byte [esp + ebp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebx + 0x19c]
lea edx, [esp + 0x28]
push edx
lea ecx, [ebx + eax*4 + 0x1b0]
inc eax
mov dword [ebx + 0x19c], eax
call fcn.0042610f
lea ecx, [esp + 0x24]
mov byte [esp + 0x370], 0
call fcn.00425fca
lea ecx, [esp + 0x378]
mov dword [esp + 0x370], 0xffffffff
call fcn.00425fca
mov ecx, dword [esp + 0x368]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x364
ret 4