Function at 0x4074d0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45a836
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x46ad0c]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x11c], eax
call fcn.00406fc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0
call fcn.00406fc0
mov eax, dword [esp + 0x130]
lea ebx, [esp + 0x18]
mov byte [esp + 0x128], 1
sub ebx, eax
nop
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x407530
mov eax, dword [0x46aa10]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407541
lea edi, [esp + 0x18]
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407550
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40773e
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00406fd0
mov edx, dword [ebp]
push 0
push 0
push 0
push str.begin_
push edx
call fcn.00414760
mov eax, dword [ebp]
push 0
push 0
push 0
push str.CREATE_TABLE_yf_mb_crc_mcode_int__mcode_text__crc_mdata_int__mdata_text__mb_type_int_DEFAULT_0__
push eax
call fcn.00414760
mov ecx, dword [ebp]
push 0
push 0
push 0
push str.CREATE_index_yf_mb_index_mcode_on_yf_mb_crc_mcode__
push ecx
call fcn.00414760
mov edx, dword [ebp]
push 0
push 0
push 0
push str.CREATE_index_yf_mb_index_mdata_on_yf_mb_crc_mdata__
push edx
call fcn.00414760
mov eax, dword [ebp]
add esp, 0x50
push 0
push 0
push 0
push str.end_
push eax
call fcn.00414760
mov ecx, dword [ebp]
push ecx
call fcn.00412630
mov eax, dword [esp + 0x148]
add esp, 0x18
mov dword [ebp], 0
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x407607
mov eax, dword [0x46aa14]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407618
lea edi, [esp + 0x18]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407626
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x18]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407657
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00406fd0
mov edx, dword [ebp]
push 0
push 0
push 0
push str.begin_
push edx
call fcn.00414760
add esp, 0x14
xor ebx, ebx
lea esp, [esp]
mov al, bl
add al, 0x61
movsx esi, al
push esi
lea ecx, [esp + 0x18]
push str.CREATE_TABLE_tp_mb_c_crc_mcode_int__mcode_text__crc_mdata_int__mdata_text__lasttime_bigint__
push ecx
call fcn.004011e0
mov edx, dword [esp + 0x20]
mov eax, dword [ebp]
push 0
push 0
push 0
push edx
push eax
call fcn.00414760
push esi
push esi
lea ecx, [esp + 0x38]
push str.CREATE_index_tp_mb_c_index_mcode_on_tp_mb_c_crc_mcode__
push ecx
call fcn.004011e0
mov edx, dword [esp + 0x40]
mov eax, dword [ebp]
push 0
push 0
push 0
push edx
push eax
call fcn.00414760
add esp, 0x44
push esi
push esi
lea ecx, [esp + 0x18]
push str.CREATE_index_tp_mb_c_index_mdata_on_tp_mb_c_crc_mdata__
push ecx
call fcn.004011e0
mov edx, dword [esp + 0x20]
mov eax, dword [ebp]
push 0
push 0
push 0
push edx
push eax
call fcn.00414760
add esp, 0x24
lea ecx, [esp + 0x14]
call fcn.004011c0
lea ecx, [esp + 0x10]
call fcn.004011c0
inc ebx
cmp ebx, 0x1a
jl 0x407680
mov ecx, dword [ebp]
push 0
push 0
push 0
push str.end_
push ecx
call fcn.00414760
mov edx, dword [ebp]
push edx
call fcn.00412630
add esp, 0x18
mov dword [ebp], 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 0
call fcn.004011c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0xffffffff
call fcn.004011c0
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x110]
pop ebx
call fcn.0044b7c8
add esp, 0x11c
ret 4