Function at 0x4a5570
Capabilities:
Create directory
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
and eax, 7
mov ebx, edx
mov esi, ecx
push edi
cmp eax, 2
jne 0x4a5879
mov ecx, dword [esi + 0x10ba8]
mov al, byte [ebx]
mov byte [ecx], al
mov eax, dword [esi + 0x10ba8]
cmp byte [eax], 0
je 0x4a55ce
nop
inc dword [esi + 0x10ba8]
lea edx, [edx + 1]
mov ecx, dword [esi + 0x10ba8]
mov al, byte [edx]
mov byte [ecx], al
mov eax, dword [esi + 0x10ba8]
cmp byte [eax], 0
jne 0x4a55b0
mov edx, dword [esi + 0x10ba0]
mov ecx, esi
call fcn.004a4470
lea ecx, [esi + 0x10bac]
test eax, eax
je 0x4a55f9
cmp dword [esi + 0x10b94], 0
je 0x4a55f9
mov edx, ecx
mov ecx, ebx
call fcn.004a53f0
jmp 0x4a562e
mov ecx, dword [ecx]
mov al, byte [ebx]
mov byte [ecx], al
mov eax, dword [esi + 0x10bac]
cmp byte [eax], 0
je 0x4a562e
nop word [eax + eax]
inc dword [esi + 0x10bac]
lea ebx, [ebx + 1]
mov ecx, dword [esi + 0x10bac]
mov al, byte [ebx]
mov byte [ecx], al
mov eax, dword [esi + 0x10bac]
cmp byte [eax], 0
jne 0x4a5610
mov edi, dword [esi + 0x10ba8]
lea eax, [esi + 0x10980]
mov edx, dword [esi + 0x10ba4]
mov ecx, esi
sub edi, dword [esi + 0x10ba0]
push eax
call fcn.004a5f00
add esp, 4
test eax, eax
je 0x4a5799
cmp dword [esi + 0x7c], 0
jne 0x4a5691
push dword [esi + 0x10ba0]
call fcn.0051cad9
add esp, 4
push dword [esi + 0x10ba4]
call fcn.0051cad9
add esp, 4
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp edi, 0x101
jle 0x4a56ff
mov ecx, dword [esi + 0x10ba0]
lea edx, [esi + 0x88dc]
push 1
lea edi, [esi + 0x8dc]
call fcn.004af040
push ecx
push eax
push str.checkdir_error:__path_too_long:__s_n
push edi
call fcn.004a1b90
add esp, 0x10
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
push dword [esi + 0x10ba0]
call fcn.0051cad9
add esp, 4
push dword [esi + 0x10ba4]
call fcn.0051cad9
add esp, 4
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push dword [esi + 0x10ba4]
call fcn.0053239c
add esp, 4
cmp eax, 0xffffffff
jne 0x4a578a
push 1
lea edx, [esi + 0x88dc]
lea ecx, [esi + 0x109f0]
lea edi, [esi + 0x8dc]
call fcn.004af040
push ecx
mov ecx, dword [esi + 0x10ba4]
lea edx, [esi + 0xc8dc]
push eax
call fcn.004af040
push eax
push str.checkdir_error:__cannot_create__s_n_________________unable_to_process__s._n
push edi
call fcn.004a1b90
add esp, 0x14
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
push dword [esi + 0x10ba0]
call fcn.0051cad9
add esp, 4
push dword [esi + 0x10ba4]
call fcn.0051cad9
add esp, 4
mov eax, 0x300
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10b80], 1
jmp 0x4a5836
mov ax, word [esi + 0x10986]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x4a582a
push 1
lea edx, [esi + 0x88dc]
lea ecx, [esi + 0x109f0]
lea edi, [esi + 0x8dc]
call fcn.004af040
push ecx
mov ecx, dword [esi + 0x10ba4]
lea edx, [esi + 0xc8dc]
push eax
call fcn.004af040
push eax
push str.checkdir_error:___s_exists_but_is_not_directory_n_________________unable_to_process__s._n
push edi
call fcn.004a1b90
add esp, 0x14
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
push dword [esi + 0x10ba0]
call fcn.0051cad9
add esp, 4
push dword [esi + 0x10ba4]
call fcn.0051cad9
add esp, 4
mov eax, 0x300
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp edi, 0x101
jg 0x4a5699
mov eax, dword [esi + 0x10ba8]
mov byte [eax], 0x2f
mov eax, dword [esi + 0x10bac]
inc dword [esi + 0x10ba8]
mov byte [eax], 0x2f
inc dword [esi + 0x10bac]
mov eax, dword [esi + 0x10bac]
mov byte [eax], 0
mov eax, dword [esi + 0x10ba8]
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x4a58e9
mov ecx, dword [esi + 0x10ba4]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx], al
lea ebx, [ebx + 1]
test al, al
jne 0x4a5884
push dword [esi + 0x10ba4]
call fcn.0051cad9
add esp, 4
push dword [esi + 0x10ba0]
call fcn.0051cad9
add esp, 4
mov dword [esi + 0x10bac], 0
mov dword [esi + 0x10ba8], 0
xor eax, eax
mov dword [esi + 0x10ba4], 0
mov dword [esi + 0x10ba0], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x4a5a31
mov ecx, dword [esi + 0x10ba8]
xor edi, edi
mov al, byte [ebx]
mov byte [ecx], al
mov eax, dword [esi + 0x10ba8]
cmp byte [eax], 0
je 0x4a59a5
nop dword [eax]
lea ecx, [eax + 1]
inc edx
mov eax, ecx
mov dword [ebp - 0x114], edx
sub eax, dword [esi + 0x10ba0]
mov dword [esi + 0x10ba8], ecx
cmp eax, 0x104
jl 0x4a5992
lea eax, [ecx - 1]
mov dword [esi + 0x10ba8], eax
lea edx, [esi + 0xc8dc]
mov byte [eax], 0
lea edi, [esi + 0x8dc]
mov ecx, dword [esi + 0x10ba0]
push 1
call fcn.004af040
push ecx
push eax
lea edx, [esi + 0x88dc]
lea ecx, [esi + 0x109f0]
call fcn.004af040
push eax
push str.checkdir_warning:__path_too_long__truncating_n____________________s_n____________________s_n
push edi
call fcn.004a1b90
add esp, 0x14
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov ecx, dword [esi + 0x10ba8]
mov edi, 0x100
mov edx, dword [ebp - 0x114]
mov al, byte [edx]
mov byte [ecx], al
mov eax, dword [esi + 0x10ba8]
cmp byte [eax], 0
jne 0x4a5910
mov eax, dword [esi + 0x8d8]
test byte [eax + 0x18], 0x20
jne 0x4a59eb
mov edx, dword [esi + 0x10ba0]
mov ecx, esi
call fcn.004a4470
test eax, eax
je 0x4a59eb
cmp dword [esi + 0x10b94], 0
je 0x4a59eb
lea edx, [esi + 0x10bac]
mov ecx, ebx
call fcn.004a53f0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10bac]
mov al, byte [ebx]
mov byte [ecx], al
mov eax, dword [esi + 0x10bac]
cmp byte [eax], 0
je 0x4a5a1e
inc dword [esi + 0x10bac]
lea ebx, [ebx + 1]
mov edx, dword [esi + 0x10bac]
mov cl, byte [ebx]
mov byte [edx], cl
mov ecx, dword [esi + 0x10bac]
cmp byte [ecx], 0
jne 0x4a5a00
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4a5c9b
mov ecx, dword [esi + 0x10cbc]
mov eax, dword [esi + 0x10b88]
inc ecx
add eax, ecx
push eax
call fcn.0051e703
add esp, 4
mov dword [esi + 0x10ba0], eax
test eax, eax
je 0x4a5a8c
mov ecx, dword [esi + 0x10cbc]
mov eax, dword [esi + 0x10b88]
inc ecx
add eax, ecx
push eax
call fcn.0051e703
add esp, 4
mov dword [esi + 0x10ba4], eax
test eax, eax
jne 0x4a5aa2
push dword [esi + 0x10ba0]
call fcn.0051cad9
add esp, 4
mov eax, 0xa00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x8d8]
mov edx, dword [esi + 0x10b84]
test byte [eax + 0x18], 0x20
je 0x4a5bfa
test edx, edx
je 0x4a5ac7
cmp byte [ebx + 1], 0x3a
jne 0x4a5af5
movsx eax, byte [ebx]
jmp 0x4a5adf
cmp dword [esi + 0x10cbc], 1
jle 0x4a5af5
mov eax, dword [esi + 0x10b9c]
cmp byte [eax + 1], 0x3a
jne 0x4a5af5
movsx eax, byte [eax]
push eax
call fcn.0052b963
mov ecx, dword [esi + 0x10ba0]
add esp, 4
mov byte [ecx], al
jmp 0x4a5b6d
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x104
push 0x59df74
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, 0x104
jbe 0x4a5b52
push 1
push ecx
lea edi, [esi + 0x8dc]
push str.checkdir_warning:_current_dir_path_too_long_n
push edi
call fcn.004a1b90
add esp, 0xc
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov eax, 0x100
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
movsx ecx, byte [ebp - 0x110]
mov eax, dword [esi + 0x10ba0]
add ecx, 0xffffffa0
mov dword [esi + 0x10b8c], ecx
add cl, 0x60
mov byte [eax], cl
mov ecx, dword [esi + 0x10ba0]
mov edx, ecx
mov edi, dword [esi + 0x40]
movsx eax, byte [ecx]
add eax, 0xffffffa0
mov dword [esi + 0x10b8c], eax
test edi, edi
je 0x4a5bc2
cmp byte [ecx], 0x61
jl 0x4a5bc2
cmp edi, 1
jne 0x4a5bef
add al, 0x40
mov word [ebp - 0x113], 0x2f3a
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 0x111], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x4a5bef
mov edx, dword [esi + 0x10ba0]
push edx
call fcn.0051cad9
add esp, 4
push dword [esi + 0x10ba4]
call fcn.0051cad9
add esp, 4
mov eax, 0x1100
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10ba0]
mov byte [eax], 0
jmp 0x4a5c36
mov ecx, dword [esi + 0x10ba0]
test edx, edx
je 0x4a5c14
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4a5c04
jmp 0x4a5c36
cmp dword [esi + 0x10cbc], 0
jle 0x4a5c33
mov edx, dword [esi + 0x10b9c]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4a5c23
jmp 0x4a5c36
mov byte [ecx], 0
mov eax, dword [esi + 0x10ba0]
mov ecx, dword [esi + 0x10ba4]
mov dword [esi + 0x10ba8], eax
mov dword [esi + 0x10bac], ecx
mov al, byte [eax]
mov byte [ecx], al
mov eax, dword [esi + 0x10bac]
cmp byte [eax], 0
je 0x4a5ecf
inc dword [esi + 0x10ba8]
inc dword [esi + 0x10bac]
mov eax, dword [esi + 0x10ba8]
mov ecx, dword [esi + 0x10bac]
mov al, byte [eax]
mov byte [ecx], al
mov eax, dword [esi + 0x10bac]
cmp byte [eax], 0
jne 0x4a5c61
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4a5ea9
test ebx, ebx
je 0x4a5ec5
cmp dword [esi + 0x10cbc], eax
jg 0x4a5ecf
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5cc0
sub ecx, edx
mov dword [esi + 0x10cbc], ecx
test ecx, ecx
jle 0x4a5ecf
lea eax, [ecx + 3]
push eax
call fcn.0051e703
mov edi, eax
add esp, 4
mov dword [ebp - 0x114], edi
test edi, edi
je 0x4a5dad
mov ecx, edi
sub ecx, ebx
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [ecx + ebx - 1], al
test al, al
jne 0x4a5cf7
movzx eax, byte [edi]
push eax
call fcn.0052db70
add esp, 4
xor ecx, ecx
test eax, eax
je 0x4a5d22
cmp byte [edi + 1], 0x3a
mov eax, 1
cmove ecx, eax
mov ebx, dword [esi + 0x10cbc]
mov al, byte [ebx + edi - 1]
cmp al, 0x2f
je 0x4a5d39
mov edx, 1
cmp al, 0x5c
jne 0x4a5d48
lea eax, [ebx - 1]
xor edx, edx
mov dword [esi + 0x10cbc], eax
mov byte [eax + edi], 0
test ecx, ecx
je 0x4a5dcd
cmp dword [esi + 0x10cbc], 2
jne 0x4a5dcd
test edx, edx
je 0x4a5d6b
mov byte [edi + 2], 0x2e
inc dword [esi + 0x10cbc]
mov eax, dword [esi + 0x10cbc]
mov byte [eax + edi], 0x2f
inc dword [esi + 0x10cbc]
mov eax, dword [esi + 0x10cbc]
mov byte [eax + edi], 0
mov eax, dword [esi + 0x10cbc]
inc eax
push eax
push edi
call fcn.0051caf4
add esp, 8
mov dword [esi + 0x10b9c], eax
test eax, eax
jne 0x4a5ecf
push edi
call fcn.0051cad9
add esp, 4
mov dword [esi + 0x10cbc], 0
mov eax, 0xa00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x10cbc], 0
jle 0x4a5d6b
lea eax, [esi + 0x10980]
mov edx, edi
push eax
mov ecx, esi
call fcn.004a5f00
add esp, 4
test eax, eax
jne 0x4a5e0a
mov ax, word [esi + 0x10986]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x4a5d6b
cmp dword [esi + 0x7c], 0
push edi
jne 0x4a5e39
call fcn.0051cad9
add esp, 4
mov dword [esi + 0x10cbc], 0
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
call fcn.0053239c
add esp, 4
cmp eax, 0xffffffff
jne 0x4a5d6b
mov ebx, dword [ebp - 0x114]
lea edx, [esi + 0x88dc]
push 1
mov ecx, ebx
lea edi, [esi + 0x8dc]
call fcn.004af040
push ecx
push eax
push str.checkdir:__cannot_create_extraction_directory:__s_n
push edi
call fcn.004a1b90
add esp, 0x10
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
push ebx
call fcn.0051cad9
add esp, 4
mov dword [esi + 0x10cbc], 0
mov eax, 0x300
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4a5ee2
cmp dword [esi + 0x10cbc], 0
jle 0x4a5ecf
push dword [esi + 0x10b9c]
call fcn.0051cad9
add esp, 4
mov dword [esi + 0x10cbc], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x6300
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret