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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov esi, ecx
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ecx, dword [edx]
lea edi, [ecx + 8]
mov ebx, dword [eax]
cmp edi, dword [ebx]
jbe 0x50b352
mov ebp, dword [eax + 4]
mov edi, dword [eax + 8]
lea ecx, [esp + 0x14]
push ebp
call fcn.00500940
mov ebx, edi
sub ebx, dword [esp + 0x14]
mov eax, dword [ebp]
movzx eax, word [eax + 0x12]
rol ax, 8
sar ebx, 6
movzx eax, ax
mov ecx, dword [edi + 4]
bswap ecx
push ecx
push eax
call fcn.0054a5d0
add esp, 8
mov word [esp + 0x3c], 0x305
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], str._section_with_index
lea edi, [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 8], ebx
mov word [esp + 0x10], 0x902
mov ebp, esp
lea ebx, [esp + 0x50]
mov ecx, ebx
push ebp
call fcn.0054a73e
mov ecx, ebx
push str.invalid
push 0
call fcn.0054ab52
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x20], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x20]
push str.:_version_definition
call fcn.0054ab40
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x14], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x34], eax
mov word [esp + 0x3c], 0x904
mov dword [esp], edi
mov dword [esp + 8], str._refers_to_an_auxiliary_entry_that_goes_past_the_end_of_the_section
mov word [esp + 0x10], 0x302
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
call fcn.0054a58e
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x54]
movsd qword [esp + 4], xmm0
mov dword [esp], ebp
mov ecx, edi
call fcn.0054a3a8
or byte [esi + 0x10], 1
mov dword [esi], edi
test byte [esp + 0x14], 1
jne 0x50b3cb
test byte [esp + 0x20], 1
jne 0x50b3e2
test byte [esp + 0x50], 1
jne 0x50b3f9
jmp 0x50b49d
mov dword [esp + 0x44], esi
mov ebp, dword [ecx + 4]
bswap ebp
add ebp, ecx
mov dword [edx], ebp
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
sub ebp, dword [edi]
mov esi, dword [ecx]
bswap esi
mov ecx, dword [edx + 4]
mov ebx, ecx
sub ebx, esi
jae 0x50b40a
mov dword [esp + 0x2c], str._invalid_vda_name:
mov dword [esp + 0x34], esi
mov word [esp + 0x3c], 0x903
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 8], 0x55751b
mov word [esp + 0x10], 0x302
mov eax, esp
lea ecx, [esp + 0x14]
push eax
call fcn.0054a73e
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x15]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x23], ecx
mov ecx, dword [esp + 0x1c]
jmp 0x50b47f
push dword [esp + 0x1c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x20], 1
je 0x50b342
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x50], 1
je 0x50b49d
push dword [esp + 0x58]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x50b49d
cmp ebx, 0xfffffff8
jae 0x50b4a9
mov edi, dword [edx]
add edi, esi
cmp ebx, 0xb
jae 0x50b42d
mov edx, ebx
add dl, bl
mov byte [esp], dl
lea eax, [esp + 1]
cmp ecx, esi
ja 0x50b454
jmp 0x50b463
mov dword [esp + 0x40], edi
mov edi, ebx
or edi, 7
lea eax, [edi + 1]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 8], eax
add edi, 2
mov dword [esp], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 4], ebx
push ebx
push edi
push eax
mov esi, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov eax, esi
add esp, 0xc
mov byte [eax + ebx], 0
movzx eax, byte [esp]
mov ecx, dword [esp + 1]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x23], ecx
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x44]
and byte [esi + 0x10], 0xfe
mov dword [esi], ebp
mov byte [esi + 4], al
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x23]
mov dword [esi + 5], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, esp
call fcn.00407760