Function at 0x43d1b0
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe2c
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0xe28], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push esi
push edi
mov dword [esp + 0x14], ebx
xor esi, esi
call edx
test eax, eax
jbe 0x43d21a
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push esi
mov ecx, ebx
call edx
mov edi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
test al, al
je 0x43d20a
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
mov ecx, edi
call edx
test eax, eax
jne 0x43d44c
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
add esi, 1
call edx
cmp esi, eax
jb 0x43d1e0
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x10], edi
call edx
test eax, eax
jbe 0x43d44c
mov esi, dword [sym.imp.MSVCR80.dll__swprintf]
jmp 0x43d244
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push edi
mov ecx, ebx
call edx
mov ebx, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
mov ecx, ebx
call edx
test al, al
je 0x43d3e5
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
test eax, eax
je 0x43d3e5
xor edi, edi
push 0x7fe
lea eax, [esp + 0x636]
push edi
push eax
mov dword [esp + 0x18], edi
mov word [esp + 0x63c], di
call sub.ntdll.dll_memset
mov edx, dword [ebx]
mov eax, dword [edx + 0x4c]
add esp, 0xc
mov ecx, ebx
call eax
lea edx, [esp + 0x630]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, di
jne 0x43d2a6
push 0x206
lea ecx, [esp + 0x1e]
push edi
push ecx
mov word [esp + 0x24], di
call sub.ntdll.dll_memset
push 0x206
lea edx, [esp + 0x43a]
push edi
push edx
mov word [esp + 0x440], di
call sub.ntdll.dll_memset
push 0x206
lea eax, [esp + 0x23e]
push edi
push eax
mov word [esp + 0x244], di
call sub.ntdll.dll_memset
lea ecx, [esp + 0x654]
push ecx
lea edx, [esp + 0x40]
push str._s_boot.ini
push edx
call esi
lea eax, [esp + 0x660]
push eax
lea ecx, [esp + 0x45c]
push str._s_ntldr
push ecx
call esi
lea edx, [esp + 0x66c]
push edx
lea eax, [esp + 0x260]
push str._s_bootmgr
push eax
call esi
add esp, 0x48
test byte [0x50354c], 1
jne 0x43d361
or dword [0x50354c], 1
mov dword [0x503548], 0x4e7844
mov edx, dword [0x503548]
mov eax, dword [edx + 0x64]
push 0x80000000
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x503548
call eax
cmp eax, 0xffffffff
je 0x43d3aa
mov edx, dword [0x503548]
mov eax, dword [edx + 0x64]
push 0x80000000
lea ecx, [esp + 0x42c]
push ecx
mov ecx, 0x503548
call eax
cmp eax, 0xffffffff
je 0x43d3aa
mov dword [esp + 0xc], 1
mov edx, dword [0x503548]
mov eax, dword [edx + 0x64]
push 0x80000000
lea ecx, [esp + 0x224]
push ecx
mov ecx, 0x503548
call eax
cmp eax, 0xffffffff
je 0x43d3d4
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], edi
jne 0x43d414
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add edi, 1
mov dword [esp + 0x10], edi
call eax
cmp edi, eax
jb 0x43d240
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe28]
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
mov esi, eax
mov ecx, 0x173
lea edi, [esp + 0x630]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x630]
movsb byte es:[edi], byte [esi]
push eax
mov ecx, ebx
mov dword [esp + 0x64c], 1
call edx
mov ecx, dword [esp + 0xe34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret