Function at 0x47a360
Capabilities:
Create directory
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a9a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 0x4e5a9c
mov cx, word [ebp + 0x144]
mov bl, byte [ebp + 0x141]
mov di, word [ebp + 0x142]
mov ax, word [ebp + 0x146]
mov word [esp + 0x2c], cx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17], bl
mov dword [esp + 0x38], edi
mov word [esp + 0x30], ax
call sub.MFC42.DLL_CString::CString_2
xor esi, esi
push 0x4e5a9c
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], esi
call sub.MFC42.DLL_CString::CString_2
push 0x4e5a9c
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
push str.Original_BBT:_r_n
push edx
mov byte [esp + 0x4c], 2
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], esi
call sub.MFC42.DLL_CString::Format
mov al, byte [ebp + 0x34]
add esp, 8
test al, al
mov byte [esp + 0x24], 0
jbe 0x47a527
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x1c]
and esi, 0xff
push esi
push str.CE__d_:_n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
imul esi, dword [ebp + 0x16c]
mov edx, dword [esp + 0x4c]
xor al, al
add esi, edx
mov byte [esp + 0x12], al
test bl, bl
mov dword [esp + 0x30], esi
jbe 0x47a504
test di, di
jbe 0x47a4f6
movzx ax, al
mov esi, eax
imul eax, dword [esp + 0x2c]
imul esi, dword [esp + 0x28]
mov ebx, eax
and edi, 0xffff
mov eax, dword [esp + 0x30]
mov edx, ebx
and edx, 0xffff
cmp byte [edx + eax], 0xd0
jne 0x47a4e5
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x47a4a6
test al, 0xf
jne 0x47a4a6
push 0x4e0484
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov ecx, esi
lea edx, [esp + 0x1c]
and ecx, 0xffff
push ecx
push str._04d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0xa8]
inc ecx
inc eax
mov dword [esp + 0x20], ecx
mov dword [ebp + 0xa8], eax
inc ebx
inc esi
dec edi
jne 0x47a47a
mov bl, byte [esp + 0x13]
mov edi, dword [esp + 0x34]
mov al, byte [esp + 0x12]
inc al
cmp al, bl
mov byte [esp + 0x12], al
jb 0x47a459
push 0x4e0484
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov al, byte [esp + 0x24]
mov cl, byte [ebp + 0x34]
inc al
cmp al, cl
mov byte [esp + 0x24], al
jb 0x47a40f
push 0x4e0484
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x4e60d0
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
mov byte [esp + 0x48], 3
call edi
mov edx, dword [0x4e60d8]
push eax
push edx
lea eax, [esp + 0x24]
push str._sOBBT_INFO_03X_OBBT
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
push str.OBBT_INFO
lea ecx, [esp + 0x50]
push 0x4e60d8
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
lea ecx, [esp + 0x4c]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x47a5f0
push str.OBBT_INFO
lea edx, [esp + 0x50]
push 0x4e60d8
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
call ebx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
push 0
push eax
call ebx
lea ecx, [esp + 0x4c]
push 3
push ecx
mov ecx, 0x4e60d0
call sub.MFC42.DLL_CString::Right
mov edx, dword [ebp + 4]
mov eax, dword [eax]
inc edx
mov byte [esp + 0x44], 4
push edx
push eax
call edi
add esp, 4
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [0x4e60d8]
push eax
push str._sOBBT_INFO_03X_OBBT_02d_OBBT.txt
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004a57ee
call fcn.00415650
add esp, 4
test eax, eax
je 0x47a662
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x14]
push 0
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4