Function at 0x43b7a0
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe2c
mov eax, dword [0x4e9028]
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 0x43b80a
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 0x43b7fa
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
mov ecx, edi
call edx
test eax, eax
jne 0x43ba3c
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
add esi, 1
call edx
cmp esi, eax
jb 0x43b7d0
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 0x43ba3c
mov esi, dword [sym.imp.MSVCR80.dll__swprintf]
jmp 0x43b834
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 0x43b9d5
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
test eax, eax
je 0x43b9d5
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 0x43b896
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 [0x4f190c], 1
jne 0x43b951
or dword [0x4f190c], 1
mov dword [0x4f1908], 0x4db424
mov edx, dword [0x4f1908]
mov eax, dword [edx + 0x64]
push 0x80000000
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x4f1908
call eax
cmp eax, 0xffffffff
je 0x43b99a
mov edx, dword [0x4f1908]
mov eax, dword [edx + 0x64]
push 0x80000000
lea ecx, [esp + 0x42c]
push ecx
mov ecx, 0x4f1908
call eax
cmp eax, 0xffffffff
je 0x43b99a
mov dword [esp + 0xc], 1
mov edx, dword [0x4f1908]
mov eax, dword [edx + 0x64]
push 0x80000000
lea ecx, [esp + 0x224]
push ecx
mov ecx, 0x4f1908
call eax
cmp eax, 0xffffffff
je 0x43b9c4
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], edi
jne 0x43ba04
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 0x43b830
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe28]
xor ecx, esp
call fcn.00462b77
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.00462b77
mov esp, ebp
pop ebp
ret