Function at 0x47d810
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x25c]
push edi
push eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esi + 1]
push 0x5c
push eax
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, eax
add esp, 8
mov ecx, 0x5c5c
test edi, edi
je 0x47d95c
mov byte [edi], 0
cmp word [esi], cx
jne 0x47d878
lea eax, [esi + 2]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x47d8a6
cmp byte [esi], 0
je 0x47d89d
push esi
call ebx
test eax, eax
jne 0x47d89d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x47d89d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47d8b6
lea eax, [ebp - 0x25c]
push eax
call ebx
lea eax, [edi + 1]
mov byte [edi], 0x5c
push 0x5c
push eax
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr
jmp 0x47d84c
push str.Error_creating_directory__s:_s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047f8c0
add esp, 8
push eax
push esi
push 0xa98
push str.Misc.c
push str.Error_creating_directory__s:_s
lea eax, [ebp - 0x130]
push 0x12c
push eax
call fcn.00482bc0
add esp, 0x20
cmp dword [ebp + 8], 0xffffffff
je 0x47da4e
call fcn.00493410
test eax, eax
je 0x47da4e
call fcn.00493410
cmp dword [eax], 0
je 0x47da4e
mov eax, dword [0x52e820]
test eax, eax
je 0x47d927
mov esi, dword [eax + 0x190]
jmp 0x47d92d
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x47d93f
call fcn.00493410
mov eax, dword [eax]
jmp 0x47d941
xor eax, eax
lea ecx, [ebp - 0x130]
push ecx
push ecx
push dword [0x52e820]
push esi
push 0
push 0xa9a
jmp 0x47da3f
cmp word [esi], cx
jne 0x47d977
lea eax, [esi + 2]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x47da73
cmp byte [esi], 0
je 0x47da6a
push esi
call ebx
test eax, eax
jne 0x47da6a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x47da6a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x47da6a
push str.Error_creating_directory__s:__s
push 0
call edi
push eax
call fcn.0047f8c0
add esp, 8
push eax
push esi
push 0xaa6
push str.Misc.c
push str.Error_creating_directory__s:__s
lea eax, [ebp - 0x130]
push 0x12c
push eax
call fcn.00482bc0
add esp, 0x20
cmp dword [ebp + 8], 0xffffffff
je 0x47da4e
call fcn.00493410
test eax, eax
je 0x47da4e
call fcn.00493410
cmp dword [eax], 0
je 0x47da4e
mov eax, dword [0x52e820]
test eax, eax
je 0x47da0f
mov esi, dword [eax + 0x190]
jmp 0x47da15
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x47da27
call fcn.00493410
mov eax, dword [eax]
jmp 0x47da29
xor eax, eax
lea ecx, [ebp - 0x130]
push ecx
push ecx
push dword [0x52e820]
push esi
push 0
push 0xaa8
push str.Misc.c
push 0x103
call eax
add esp, 0x20
lea eax, [ebp - 0x25c]
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x25c]
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e2538
mov esp, ebp
pop ebp
ret