Function at 0x11d17e80
Capabilities:
Get common file path
Get file attributes
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x11fa5962
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [0x11fd6250]
push ebx
push esi
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x248]
push str.__c
mov ecx, esi
mov dword [esp + 0x244], 0
call fcn.11e83e40
push str.__c
mov edi, eax
call fcn.11e67d05
add esp, 4
add edi, eax
lea ecx, [esp + 0xc]
push edi
push ecx
mov ecx, esi
call fcn.11e81570
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 1
call fcn.11e7f410
lea ecx, [esp + 0xc]
mov byte [esp + 0x240], 0
call fcn.11e7f280
push 0x1206059c
lea ecx, [esp + 0x14]
call fcn.11e82a90
push 0x1206059c
lea ecx, [esp + 0x14]
call fcn.11e82d80
mov eax, dword [0x12133f80]
mov ebx, 4
test eax, eax
je 0x11d17f4c
mov edx, dword [esp + 0x10]
push edx
push str.ReadBat__batfile__s_
push str.ReadCmdLine
push ebx
call fcn.11ca5810
add esp, 0x10
mov eax, dword [0x11fd6250]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x248], 2
call fcn.11de5bf0
add esp, 8
test eax, eax
ja 0x11d17f9f
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 0
call fcn.11e7f280
lea ecx, [esp + 0x10]
mov dword [esp + 0x240], 0xffffffff
call fcn.11e7f280
xor eax, eax
jmp 0x11d18287
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x14]
call fcn.11e84ba0
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x18]
push 0x12038d18
push ecx
push edx
mov byte [esp + 0x250], 3
call fcn.11d6f8c0
mov eax, dword [esp + 0x28]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x11d18241
mov eax, dword [0x12133f80]
test eax, eax
je 0x11d18021
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
push ecx
push 0x12060544
push str.ReadCmdLine
push ebx
call fcn.11ca5810
add esp, 0x10
mov edx, dword [esp + 0x14]
push 0x12060540
lea edi, [edx + esi*4]
mov ecx, edi
call fcn.11e82a90
push 0x12060540
mov ecx, edi
call fcn.11e82d80
mov eax, dword [esp + 0x14]
push str.rem
lea ecx, [eax + esi*4]
call fcn.11e83e40
test eax, eax
je 0x11d18234
mov ecx, dword [esp + 0x14]
push 0x1206052c
lea ecx, [ecx + esi*4]
call fcn.11e80400
test eax, eax
je 0x11d18234
mov edx, dword [esp + 0x14]
push str.copy
lea ecx, [edx + esi*4]
call fcn.11e83e40
test eax, eax
jge 0x11d180b5
mov eax, dword [esp + 0x14]
push str.type
lea ecx, [eax + esi*4]
call fcn.11e83e40
test eax, eax
jge 0x11d180b5
mov ecx, dword [esp + 0x14]
push 0x12060524
lea ecx, [ecx + esi*4]
call fcn.11e83e40
test eax, eax
jl 0x11d18234
mov edx, dword [esp + 0x14]
push 0x12060524
lea ecx, [edx + esi*4]
call fcn.11e83e40
test eax, eax
jne 0x11d1818e
mov eax, dword [0x11fd6250]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
push 0x12060524
mov byte [esp + 0x244], bl
lea edi, [ecx + esi*4]
call fcn.11e67d05
add esp, 4
lea edx, [esp + 0x2c]
mov ecx, edi
push eax
push edx
call fcn.11e81570
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x244], 5
call fcn.11e7f410
lea ecx, [esp + 0x2c]
mov byte [esp + 0x240], bl
call fcn.11e7f280
push 0x1206059c
lea ecx, [esp + 0x10]
call fcn.11e82a90
push 0x1206059c
lea ecx, [esp + 0x10]
call fcn.11e82d80
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x11d18178
mov eax, dword [0x12133f80]
test eax, eax
je 0x11d1816d
mov ecx, dword [esp + 0xc]
push ecx
push str.ReadBat_cd__dir__s_
push str.ReadCmdLine
push ebx
call fcn.11ca5810
add esp, 0x10
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0xc]
mov byte [esp + 0x240], 3
call fcn.11e7f280
jmp 0x11d18234
mov eax, dword [esp + 0x14]
push str.type
lea ecx, [eax + esi*4]
call fcn.11e83e40
test eax, eax
jl 0x11d181e8
mov ecx, dword [esp + 0x14]
push 0x12060320
lea ecx, [ecx + esi*4]
call fcn.11e83e40
test eax, eax
jle 0x11d181e8
mov eax, dword [0x12133f80]
test eax, eax
je 0x11d181dc
mov edx, dword [esp + 0x14]
mov eax, dword [edx + esi*4]
push eax
push str.ReadBat_type__content__s_
push str.ReadCmdLine
push ebx
call fcn.11ca5810
add esp, 0x10
mov ecx, dword [esp + 0x14]
push 1
lea edx, [ecx + esi*4]
push edx
jmp 0x11d1822b
mov eax, dword [esp + 0x14]
push str.copy
lea ecx, [eax + esi*4]
call fcn.11e83e40
test eax, eax
jl 0x11d18234
mov eax, dword [0x12133f80]
test eax, eax
je 0x11d18221
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + esi*4]
push edx
push str.ReadBat_copy__content__s_
push str.ReadCmdLine
push ebx
call fcn.11ca5810
add esp, 0x10
mov eax, dword [esp + 0x14]
push 2
lea ecx, [eax + esi*4]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.11d182b0
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x11d17ffd
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 2
call fcn.11e84bb0
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 0
call fcn.11e7f280
lea ecx, [esp + 0x10]
mov dword [esp + 0x240], 0xffffffff
call fcn.11e7f280
mov eax, 1
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x238
ret 4