Function at 0x41bb30
Capabilities:
Check if file exists
Copy file
Get file attributes
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470e10
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x48d000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp ebx, 1
jge 0x41bb71
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x490c18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41bb5c
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 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 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], 2
movzx ecx, word [0x490c10]
push ecx
push 0x47ec78
lea edi, [ebp - 0x18]
call fcn.004019a0
mov edx, dword [ebp + 8]
movzx eax, word [0x490c10]
push edx
push eax
push str._c:_s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
add esp, 0x14
mov ecx, section..data
mov dword [ebp - 0x28], vtable.CIniFile.0
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x200
mov dword [ebp - 0x1c], 0x21
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
push ecx
push 0x47fc58
lea edi, [ebp - 0x24]
call fcn.004019a0
movzx edx, word [0x490c10]
push edx
push str._c:_boot.in_
lea edi, [ebp - 0x14]
call fcn.004019a0
mov esi, dword [ebp - 0x24]
add esp, 0x10
cmp ebx, 1
jne 0x41bc7b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x10]
push esi
push edx
jmp 0x41bc85
cmp ebx, 2
jne 0x41bc97
mov eax, dword [ebp - 0x10]
push esi
push eax
push 0x47ecbc
push str.boot_loader
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x41bcaf
movzx ecx, word [0x490c10]
push ecx
push str._c:_boot.in_
lea edi, [ebp - 0x14]
call fcn.004019a0
add esp, 8
push 3
lea edx, [ebp - 0x28]
push edx
call fcn.00419190
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
push esi
push eax
push edi
push str.operating_systems
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
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 0x41bcee
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 - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bd11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bd31
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 - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bd57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8