Function at 0x41c230
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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 [0x490c1c]
mov ecx, dword [0x490c14]
push eax
push ecx
mov ecx, dword [0x490c10]
call fcn.0041ac50
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 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 - 0x14], eax
mov byte [ebp - 4], 1
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
movzx ecx, word [0x490c10]
push ecx
push str._c:BOOTBCD
lea edi, [ebp - 0x14]
call fcn.004019a0
movzx edx, word [0x490c10]
push edx
push str._c:BOOTBCD_M
lea edi, [ebp - 0x18]
call fcn.004019a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
movzx edx, word [0x490c10]
push edx
push str._c:BOOTBCD_M
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [ebp - 0x10]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c377
movzx ecx, word [0x490c10]
push ecx
push str._export__c:BOOTBCD_M
lea edi, [ebp - 0x14]
call fcn.004019a0
mov eax, dword [ebp - 0x14]
add esp, 4
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [0x490c18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.004197b0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx*4 + 0x490c1c]
sub eax, 0x10
call fcn.00401a40
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov bl, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
movzx ecx, word [0x490c10]
push eax
push esi
push ecx
push str._store__c:_boot_bcd__create__s__d___s___application_bootsector
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [ebp - 0x10]
add esp, 0xc
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], 5
mov eax, dword [0x490c18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], bl
call fcn.004197b0
mov edx, dword [ebp + 8]
movzx eax, word [0x490c10]
push edx
push esi
push eax
push str._store__c:_boot_bcd__set__s_path__s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [ebp - 0x10]
add esp, 0xc
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], 6
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 ecx, word [0x490c10]
push esi
push ecx
push str._store__c:_boot_bcd__displayorder__s__addlast
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], 7
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 3
push edx
push str._store__c:_boot_bcd__timeout__d
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
mov dword [ebp + 8], eax
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 - 0x1c], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], bl
call fcn.004197b0
movzx eax, word [0x490c10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00419b40
mov byte [ebp - 4], 9
mov edi, dword [ebp + 0xc]
cmp dword [edi - 0xc], 0
jne 0x41c5f0
movzx ecx, word [0x490c10]
push ecx
call fcn.0041a2f0
test eax, eax
jns 0x41c5dc
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c53d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c55d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c580
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c5a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c5c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
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
mov edi, dword [ebp + 0xc]
add esp, 8
movzx ecx, word [0x490c10]
push edi
push esi
push ecx
push str._store__c:_boot_bcd__set__s_device_partition_s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov edi, dword [ebp - 0x10]
add esp, 0xc
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x1c], esp
mov dword [ebp + 8], esp
call fcn.00401a40
add eax, 0x10
mov edx, esp
mov dword [edx], eax
mov byte [ebp - 4], 0xa
mov eax, dword [0x490c18]
push ecx
mov dword [ebp + 8], esp
add eax, 0xfffffff0
mov dword [ebp + 8], esp
call fcn.00401a40
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
mov byte [ebp - 4], 9
call fcn.004197b0
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x41c68d
movzx edx, word [0x490c10]
push esi
push edx
push str._store__c:_boot_bcd__default__s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov edi, dword [ebp - 0x10]
add esp, 8
add edi, 0xfffffff0
mov eax, edi
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], 0xb
jmp 0x41c6c9
cmp eax, 2
jne 0x41c6ed
movzx eax, word [0x490c10]
push esi
push eax
push str._store__c:_boot_bcd__default__s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov edi, dword [ebp - 0x10]
add esp, 8
add edi, 0xfffffff0
mov eax, edi
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], 0xc
mov eax, dword [0x490c18]
push ecx
mov dword [ebp + 0x10], esp
add eax, 0xfffffff0
mov dword [ebp + 0x10], esp
call fcn.00401a40
mov edx, esp
add eax, 0x10
mov dword [edx], eax
mov byte [ebp - 4], 9
call fcn.004197b0
mov byte [ebp - 4], bl
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 0x41c70f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c72f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c752
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c775
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c795
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
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