Function at 0x4a9630
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
lea edi, [ebp - 0x30]
mov eax, 0x4e4588
call fcn.00479eb8
mov byte [ebp - 0x55], 0
mov word [ebp - 0x44], 8
mov word [ebp - 0x44], 0x14
lea edx, [ebp - 0x18]
push edx
call fcn.004058c0
pop ecx
add dword [ebp - 0x38], 4
mov word [ebp - 0x44], 0x20
mov word [ebp - 0x44], 0x2c
push edi
call fcn.004058c0
pop ecx
add dword [ebp - 0x38], 4
mov word [ebp - 0x44], 0x20
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
push ebx
call fcn.00479a2c
pop ecx
add eax, ebx
lea edx, [ebp - 0x60]
push edx
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call fcn.0040f7c0
add esp, 0x10
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
test ecx, ecx
jbe 0x4a97b3
xor esi, esi
jmp 0x4a9798
mov ebx, esi
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
cmp ebx, eax
jb 0x4a96cc
lea edx, [ebp - 0x18]
push edx
call fcn.0040f84c
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, ebx
mov bl, byte [ecx]
mov word [ebp - 0x44], 0x20
movsx eax, bl
cmp eax, 0x5c
jne 0x4a973b
mov edx, dword [edi]
cmp edx, dword [edi + 4]
je 0x4a96f1
push 0
push dword [edi]
call sub.KERNEL32.DLL_CreateDirectoryA
mov ecx, dword [edi + 4]
inc ecx
cmp ecx, dword [edi + 0x10]
jne 0x4a972a
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov dword [ebp - 0x64], 1
mov edx, dword [edi + 4]
sub edx, dword [edi]
mov dword [ebp - 0x68], edx
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x64]
jae 0x4a971b
lea edx, [ebp - 0x64]
jmp 0x4a971e
lea edx, [ebp - 0x68]
add eax, dword [edx]
push eax
push edi
call fcn.0040fc64
add esp, 8
mov eax, dword [edi + 4]
inc eax
mov byte [eax], 0
mov eax, dword [edi + 4]
mov byte [eax], bl
inc dword [edi + 4]
jmp 0x4a9797
mov edx, dword [edi + 4]
inc edx
cmp edx, dword [edi + 0x10]
jne 0x4a9774
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov dword [ebp - 0x6c], 1
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
cmp edx, dword [ebp - 0x6c]
jae 0x4a9765
lea eax, [ebp - 0x6c]
jmp 0x4a9768
lea eax, [ebp - 0x70]
add ecx, dword [eax]
push ecx
push edi
call fcn.0040fc64
add esp, 8
mov eax, dword [edi + 4]
inc eax
mov byte [eax], 0
mov eax, dword [edi + 4]
mov byte [eax], bl
inc dword [edi + 4]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
dec edx
cmp esi, edx
jne 0x4a9797
push 0
push dword [edi]
call sub.KERNEL32.DLL_CreateDirectoryA
inc esi
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
cmp esi, ecx
jb 0x4a96b6
lea eax, [ebp - 0x18]
push eax
call fcn.004a95e4
pop ecx
mov byte [ebp - 0x55], al
dec dword [ebp - 0x38]
dec dword [ebp - 0x38]
mov esi, dword [edi + 0x10]
sub esi, dword [edi]
mov ebx, dword [edi]
test ebx, ebx
je 0x4a97df
cmp esi, 0x80
jbe 0x4a97d5
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a97df
push esi
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x38]
dec dword [ebp - 0x38]
dec dword [ebp - 0x38]
dec dword [ebp - 0x38]
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4a9813
cmp esi, 0x80
jbe 0x4a9809
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a9813
push esi
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x38]
dec dword [ebp - 0x38]
mov word [ebp - 0x44], 8
mov word [ebp - 0x44], 0
jmp 0x4a9832
mov al, byte [ebp - 0x55]
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret