Function at 0x41bd70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472030
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x48d000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax*4 + 0x490c1c]
sub eax, 0x10
call fcn.00401a40
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
push esi
push str._create__s__d___s___application_bootsector
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [ebp - 0x10]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov eax, dword [0x490c18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
call fcn.004197b0
mov edx, dword [ebp + 8]
push edx
push esi
push str._set__s_path__s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [ebp - 0x10]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov eax, dword [0x490c18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
call fcn.004197b0
push esi
push str._displayorder__s__addlast
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [ebp - 0x10]
add esp, 4
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 4
mov eax, dword [0x490c18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
call fcn.004197b0
push 3
push str._timeout__d
lea edi, [ebp - 0x10]
call fcn.004019a0
mov edi, dword [ebp - 0x10]
add esp, 4
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp + 0xc], esp
mov ebx, esp
call fcn.00401a40
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 5
mov eax, dword [0x490c18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov ebx, esp
call fcn.00401a40
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.004197b0
movzx eax, word [0x490c10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00419b40
mov bl, 6
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x41bfc5
movzx edx, word [0x490c10]
push edx
call fcn.0041a2f0
test eax, eax
jns 0x41bfb4
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bf5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bf7b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bf9e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push str.DeviceHarddisk_dPartition1
lea edi, [ebp + 0xc]
call fcn.004019a0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
push esi
push str._set__s_device_partition_s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [ebp - 0x10]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 7
mov eax, dword [0x490c18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], bl
call fcn.004197b0
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x10]
cmp eax, 1
jne 0x41c0e8
push esi
push str._default__s
call fcn.004019a0
mov eax, dword [ebp - 0x10]
add esp, 4
add eax, 0xfffffff0
mov dword [ebp + 0x10], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 8
mov eax, dword [0x490c18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], bl
call fcn.004197b0
movzx edx, word [0x490c10]
push edx
push str._c:BOOTBCD_M
lea edi, [ebp - 0x10]
call fcn.004019a0
mov edi, dword [ebp - 0x10]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c1af
movzx eax, word [0x490c10]
push eax
push str._export__c:BOOTBCD_M
lea edi, [ebp - 0x10]
call fcn.004019a0
mov edi, dword [ebp - 0x10]
add esp, 4
lea eax, [edi - 0x10]
mov dword [ebp + 8], esp
mov dword [ebp + 0x10], esp
call fcn.00401a40
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov eax, dword [0x490c18]
push ecx
mov dword [ebp + 0x10], esp
add eax, 0xfffffff0
mov dword [ebp + 0x10], esp
call fcn.00401a40
add eax, 0x10
mov edx, esp
mov dword [edx], eax
jmp 0x41c1a7
cmp eax, 2
jne 0x41c134
push esi
push str._default__s
call fcn.004019a0
mov edi, dword [ebp - 0x10]
add esp, 4
lea eax, [edi - 0x10]
mov dword [ebp + 8], esp
mov dword [ebp + 0x10], esp
call fcn.00401a40
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
mov byte [ebp - 4], 0xa
mov eax, dword [0x490c18]
push ecx
mov dword [ebp + 0x10], esp
add eax, 0xfffffff0
mov dword [ebp + 0x10], esp
call fcn.00401a40
add eax, 0x10
mov edx, esp
mov dword [edx], eax
jmp 0x41c1a7
movzx eax, word [0x490c10]
push eax
push str._c:BOOTBCD_M
call fcn.004019a0
mov edi, dword [ebp - 0x10]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c1af
movzx ecx, word [0x490c10]
push ecx
push str._export__c:BOOTBCD_M
lea edi, [ebp - 0x10]
call fcn.004019a0
mov edi, dword [ebp - 0x10]
add esp, 4
lea eax, [edi - 0x10]
mov dword [ebp + 8], esp
mov dword [ebp + 0x10], esp
call fcn.00401a40
add eax, 0x10
mov edx, esp
mov dword [edx], eax
mov byte [ebp - 4], 0xb
mov eax, dword [0x490c18]
push ecx
mov dword [ebp + 0x10], esp
add eax, 0xfffffff0
mov dword [ebp + 0x10], esp
call fcn.00401a40
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
mov byte [ebp - 4], bl
call fcn.004197b0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c1d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c1f2
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c215
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc