Function at 0x479130
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a99cd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
push esi
push edi
mov eax, dword [0x4da018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebx + 0xc], 0x100
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], eax
jb 0x4793d3
call fcn.00479410
push 1
push 0x100
lea ecx, [ebp - 0x1c]
call fcn.0044e760
mov edi, eax
lea edx, [esi + 0x1c]
lea ecx, [edi + 4]
cmp edx, ecx
je 0x4791be
mov eax, dword [ecx]
mov dword [ecx], 0
mov ecx, dword [edx]
mov dword [edx], eax
test ecx, ecx
je 0x4791be
push 1
push ecx
call fcn.00489239
add esp, 8
mov eax, dword [edi]
mov dword [esi + 0x18], eax
mov dword [edi], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4791db
push 1
push eax
call fcn.00489239
add esp, 8
cmp dword [esi + 0x1c], 0
jne 0x4791e5
xor eax, eax
jmp 0x4791e8
mov eax, dword [esi + 0x18]
push eax
push dword [ebp - 0x14]
push dword [esi + 0x1c]
call fcn.0048abe0
mov ecx, dword [esi + 0x1c]
add esp, 0xc
cmp dword [ecx], 0x304f534e
je 0x47921b
push str.NSO_header_corrupt__unrecognised_header_signature_
lea ecx, [ebp - 0x34]
call fcn.00403040
mov dword [ebp - 4], 1
jmp 0x4793e7
cmp dword [ecx + 4], 0
je 0x479255
push str.NSO_header_corrupt__unsupported_format_version_
lea ecx, [ebp - 0x34]
call fcn.00403040
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 2
push eax
push esi
lea ecx, [ebp - 0xe8]
call fcn.00433f80
push 0x4d8ce0
lea eax, [ebp - 0xe8]
jmp 0x479402
movups xmm0, xmmword [ecx + 0x40]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x50]
movups xmmword [esi + 0x30], xmm0
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0x40], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [ecx + 0x60]
mov dword [esi + 0x48], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x4c], eax
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x50], eax
movzx eax, byte [ecx + 0xc]
and al, 1
mov byte [esi + 0x54], al
movzx eax, byte [ecx + 0xc]
shr al, 3
and al, 1
mov byte [esi + 0x55], al
movups xmm0, xmmword [ecx + 0xa0]
movups xmmword [esi + 0x56], xmm0
movups xmm0, xmmword [ecx + 0xb0]
movups xmmword [esi + 0x66], xmm0
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x78], eax
mov eax, dword [ecx + 0x64]
mov dword [esi + 0x7c], eax
mov eax, dword [ecx + 0x24]
mov dword [esi + 0x80], eax
mov eax, dword [ecx + 0x28]
mov dword [esi + 0x84], eax
movzx eax, byte [ecx + 0xc]
shr al, 1
and al, 1
mov byte [esi + 0x88], al
movzx eax, byte [ecx + 0xc]
shr al, 4
and al, 1
mov byte [esi + 0x89], al
movups xmm0, xmmword [ecx + 0xc0]
movups xmmword [esi + 0x8a], xmm0
movups xmm0, xmmword [ecx + 0xd0]
movups xmmword [esi + 0x9a], xmm0
mov eax, dword [ecx + 0x30]
mov dword [esi + 0xac], eax
mov eax, dword [ecx + 0x68]
mov dword [esi + 0xb0], eax
mov eax, dword [ecx + 0x34]
mov dword [esi + 0xb4], eax
mov eax, dword [ecx + 0x38]
mov dword [esi + 0xb8], eax
movzx eax, byte [ecx + 0xc]
shr al, 2
and al, 1
mov byte [esi + 0xbc], al
movzx eax, byte [ecx + 0xc]
shr al, 5
and al, 1
mov byte [esi + 0xbd], al
movups xmm0, xmmword [ecx + 0xe0]
movups xmmword [esi + 0xbe], xmm0
movups xmm0, xmmword [ecx + 0xf0]
movups xmmword [esi + 0xce], xmm0
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0xe0], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0xe4], eax
mov eax, dword [ecx + 0x88]
mov dword [esi + 0xe8], eax
mov eax, dword [ecx + 0x8c]
mov dword [esi + 0xec], eax
mov eax, dword [ecx + 0x90]
mov dword [esi + 0xf0], eax
mov eax, dword [ecx + 0x94]
mov dword [esi + 0xf4], eax
mov eax, dword [ecx + 0x98]
mov dword [esi + 0xf8], eax
mov eax, dword [ecx + 0x9c]
mov dword [esi + 0xfc], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.NSO_header_size_is_too_small
lea ecx, [ebp - 0x34]
call fcn.00403040
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push esi
lea ecx, [ebp - 0x90]
call fcn.00433f80
push 0x4d8ce0
lea eax, [ebp - 0x90]
push eax
call fcn.0048ab6b
int3