Function at 0x52adbc
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe58
mov esi, str.int13err2pqerr:_0x_04lX_n
mov edi, 0x680974
push 1
push 0xf35
lea eax, [esi + 0x533]
lea edx, [esi + 0x529]
push eax
push 0x81
push 2
push edx
mov ecx, dword [edi]
push ecx
call fcn.004ad70c
add esp, 0x1c
call fcn.0052991c
call fcn.004e59e8
mov ebx, eax
test ebx, ebx
je 0x52ae20
push ebx
lea eax, [esi + 0x540]
push eax
mov edx, dword [edi]
push edx
call fcn.004ad814
add esp, 0xc
mov eax, ebx
jmp 0x52b108
mov dword [esp + 0x10], 0x94
lea edx, [esp + 0x10]
push edx
call sub.KERNEL32.DLL_GetVersionExA
mov ebx, eax
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [esp + 0x20]
and edx, 0xffff
push edx
mov ecx, dword [esp + 0x20]
push ecx
mov eax, dword [esp + 0x20]
push eax
lea edx, [esi + 0x54a]
push edx
push 4
mov ecx, dword [edi]
push ecx
call fcn.004adf9c
add esp, 0x1c
test ebx, ebx
je 0x52ae6d
cmp dword [esp + 0x20], 1
je 0x52ae8b
push 0x17
lea eax, [esi + 0x570]
push eax
mov edx, dword [edi]
push edx
call fcn.004ad814
add esp, 0xc
mov eax, 0x17
jmp 0x52b108
push 0x5298fc
push 0x15
call fcn.0061ea30
add esp, 8
push 0x5298fc
push 2
call fcn.0061ea30
add esp, 8
push 0x5298fc
push 0xf
call fcn.0061ea30
add esp, 8
push 0x100
lea edx, [esp + 0xa8]
push edx
call fcn.0052ca84
add esp, 8
lea ecx, [esp + 0xa4]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
push 0
push 0x4000000
push 3
push 0
push 0
push 0
lea eax, [esi + 0x57a]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
mov dword [0x6a35ec], ebx
cmp ebx, 0xffffffff
jne 0x52af3d
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
push ebx
lea eax, [esi + 0x585]
push eax
push 4
mov edx, dword [edi]
push edx
call fcn.004ad984
add esp, 0x10
lea ecx, [esi + 0x5a7]
push ebx
push ecx
mov eax, dword [edi]
push eax
call fcn.004ad814
add esp, 0xc
push ebx
call fcn.005299ec
pop ecx
jmp 0x52b108
push 0
push 0x4000000
push 3
push 0
push 0
push 0
lea edx, [esi + 0x5b1]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
mov dword [0x6a35f0], ebx
cmp ebx, 0xffffffff
jne 0x52afa3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
push ebx
lea eax, [esi + 0x5bf]
push eax
push 4
mov edx, dword [edi]
push edx
call fcn.004ad984
add esp, 0x10
lea ecx, [esi + 0x5e0]
push ebx
push ecx
mov eax, dword [edi]
push eax
call fcn.004ad814
add esp, 0xc
mov eax, 0xc3
jmp 0x52b108
push 0
lea edx, [esp + 8]
push edx
push 0
push 0
push 4
lea ecx, [esp + 0x14]
mov eax, dword [0x6a35f0]
push ecx
push 0x105
push eax
call sub.KERNEL32.DLL_DeviceIoControl
cmp eax, 1
jne 0x52b01b
cmp dword [esp], 0x2000000
jb 0x52afe9
lea edx, [esi + 0x5ea]
push edx
push 5
mov ecx, dword [edi]
push ecx
call fcn.004adf9c
add esp, 0xc
jmp 0x52b04d
lea eax, [esi + 0x600]
push eax
push 4
mov edx, dword [edi]
push edx
call fcn.004ad984
add esp, 0xc
lea ecx, [esi + 0x62e]
push 0x61
push ecx
mov eax, dword [edi]
push eax
call fcn.004ad814
add esp, 0xc
mov eax, 0x61
jmp 0x52b108
lea edx, [esi + 0x638]
push edx
push 4
mov ecx, dword [edi]
push ecx
call fcn.004ad984
add esp, 0xc
lea eax, [esi + 0x666]
push 0x61
push eax
mov edx, dword [edi]
push edx
call fcn.004ad814
add esp, 0xc
mov eax, 0x61
jmp 0x52b108
push 0x20000
mov edx, dword [0x6a7054]
push edx
call fcn.0053ae14
add esp, 8
test al, al
je 0x52b0c0
lea ecx, [esp + 8]
mov eax, dword [0x6a7054]
push ecx
push 0x20000
push eax
call fcn.0053b0fc
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004e5a18
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x52b0ac
push ebx
lea eax, [esi + 0x670]
push eax
push 4
mov edx, dword [edi]
push edx
call fcn.004ad984
add esp, 0x10
jmp 0x52b0c0
lea ecx, [esi + 0x681]
push ecx
push 5
mov eax, dword [edi]
push eax
call fcn.004adf9c
add esp, 0xc
call fcn.00529668
mov ebx, eax
test ebx, ebx
je 0x52b0eb
push ebx
lea eax, [esi + 0x68f]
push eax
mov edx, dword [edi]
push edx
call fcn.004ad814
add esp, 0xc
mov ecx, dword [edi]
push ecx
call fcn.004acfdc
pop ecx
mov eax, ebx
jmp 0x52b108
or dword [0x6c5dd8], 1
lea edx, [esi + 0x699]
push 0
push edx
mov ecx, dword [edi]
push ecx
call fcn.004ad814
add esp, 0xc
xor eax, eax
add esp, 0x1a8
pop edi
pop esi
pop ebx
ret