Function at 0x47f030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10c
mov ebp, edx
mov esi, ecx
movzx eax, byte [edx]
test al, 1
je 0x47f060
mov ecx, dword [ebp + 4]
cmp ecx, 0x83f
jbe 0x47f06c
test al, 1
je 0x47f19f
mov ebx, dword [ebp + 8]
jmp 0x47f1a2
mov ecx, eax
shr ecx, 1
cmp ecx, 0x83f
ja 0x47f050
mov dword [esp + 0x6c], str.Size_of_vendor_boot_is_0x:x__less_than_size_of_V3_header:_0x:x
mov dword [esp + 0x70], 0x42
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], 0x840
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
mov dword [esp + 0xc], eax
lea edi, [esp + 0x74]
mov dword [esp], edi
call fcn.004805b0
mov dword [esp], edi
lea edi, [esp + 0x18]
mov ecx, edi
call fcn.00480300
sub esp, 4
mov ebx, dword [esp + 0x104]
mov dword [esp], edi
lea ecx, [esp + 0x2c]
call fcn.00423570
sub esp, 4
mov dword [esp + 0x38], ebx
movzx eax, byte [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x2d]
mov dword [esi + 1], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esi], al
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
test byte [esp + 0x18], 1
je 0x47f12c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004203b0
mov dword [esp + 0x74], 0x57bb68
lea edi, [esp + 0xb4]
mov dword [esp + 0xb4], 0x57bb90
mov dword [esp + 0x7c], 0x57bb7c
lea ebx, [esp + 0x80]
mov dword [esp + 0x80], 0x57bdd8
test byte [esp + 0xa0], 1
je 0x47f179
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
call fcn.004203b0
mov ecx, ebx
call fcn.0042cdb0
mov dword [esp], 0x57bb9c
lea ecx, [esp + 0x74]
call fcn.0043b7e0
sub esp, 4
mov ecx, edi
call fcn.0042cc10
jmp 0x47f3cc
lea ebx, [ebp + 1]
mov edi, dword [esp + 0x120]
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x2c]
mov edx, ebx
call fcn.0047f480
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x47f217
cmp eax, 1
jne 0x47f473
lea eax, [esp + 0x2c]
mov dword [esp], eax
lea ecx, [esp + 0x74]
call fcn.00423570
sub esp, 4
mov eax, dword [esp + 0x38]
movzx ecx, byte [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x75]
mov dword [esi + 1], edx
mov edx, dword [esp + 0x7c]
mov byte [esi], cl
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 1
jmp 0x47f3a2
movzx eax, byte [ebp]
test al, 1
je 0x47f269
mov eax, dword [ebp + 4]
cmp eax, dword [esp + 0x2c]
jb 0x47f271
mov eax, 0x52444e56
xor eax, dword [ebx]
mov ecx, 0x544f4f42
xor ecx, dword [ebx + 4]
or ecx, eax
je 0x47f3d9
mov dword [esp + 0x5c], str.Vendor_boot_image_magic_mismatch
mov dword [esp + 0x60], 0x20
movsd xmm0, qword [esp + 0x5c]
movsd qword [esp + 4], xmm0
lea edi, [esp + 0x74]
mov dword [esp], edi
call fcn.0047fe30
jmp 0x47f2b8
shr eax, 1
cmp eax, dword [esp + 0x2c]
jae 0x47f228
mov dword [esp + 0x64], str.Size_of_vendor_boot_is_0x:x__less_than_size_of_V_header:_0x:x
mov dword [esp + 0x68], 0x43
mov dword [esp + 0x28], eax
movsd xmm0, qword [esp + 0x64]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x120]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
lea edi, [esp + 0x74]
mov dword [esp], edi
call fcn.00480700
mov dword [esp], edi
lea ebx, [esp + 0x40]
mov ecx, ebx
call fcn.00480300
sub esp, 4
mov edi, dword [esp + 0x104]
mov dword [esp], ebx
lea ecx, [esp + 0x18]
call fcn.00423570
sub esp, 4
mov dword [esp + 0x24], edi
movzx eax, byte [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x19]
mov dword [esi + 1], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esi], al
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 1
test byte [esp + 0x40], 1
je 0x47f334
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004203b0
mov dword [esp + 0x74], 0x57bb68
lea ebx, [esp + 0xb4]
mov dword [esp + 0xb4], 0x57bb90
mov dword [esp + 0x7c], 0x57bb7c
lea ebp, [esp + 0x80]
mov dword [esp + 0x80], 0x57bdd8
test byte [esp + 0xa0], 1
je 0x47f381
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
call fcn.004203b0
mov ecx, ebp
call fcn.0042cdb0
mov dword [esp], 0x57bb9c
lea ecx, [esp + 0x74]
call fcn.0043b7e0
sub esp, 4
mov ecx, ebx
call fcn.0042cc10
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x47f3cc
movsd xmm0, qword [0x582298]
movsd qword [esp + 0x74], xmm0
lea ecx, [esp + 0x2c]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x18]
mov dword [esp], ecx
call dword [esp + eax*4 + 0x74]
mov eax, esi
add esp, 0x10c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebx + 0xc], 0
je 0x47f420
cmp dword [ebx + 8], edi
jae 0x47f461
add ebx, 8
mov dword [esp + 0x4c], str.Require_vendor_boot_header_V_but_is_V
mov dword [esp + 0x50], 0x29
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x120]
mov dword [esp + 0xc], eax
lea ebx, [esp + 0x74]
mov dword [esp], ebx
call fcn.004805b0
jmp 0x47f448
mov dword [esp + 0x54], str.Page_size_cannot_be_zero
mov dword [esp + 0x58], 0x18
movsd xmm0, qword [esp + 0x54]
movsd qword [esp + 4], xmm0
lea ebx, [esp + 0x74]
mov dword [esp], ebx
call fcn.0047fe30
mov dword [esp], ebx
mov ecx, esi
call fcn.0047ff60
sub esp, 4
mov ecx, ebx
call fcn.00480000
jmp 0x47f3a2
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
jmp 0x47f3a2
call fcn.00413940
nop dword [eax + eax]