Function at 0x50b220
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 0x50b392
mov ebp, dword [eax + 4]
mov edi, dword [eax + 8]
lea ecx, [esp + 0x14]
push ebp
call fcn.00500980
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.0054f434
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.0054f5a2
mov ecx, ebx
push str.invalid
push 0
call fcn.0054f9b6
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.0054f9a4
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.0054f3f2
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.0054f20c
or byte [esi + 0x10], 1
mov dword [esi], edi
test byte [esp + 0x14], 1
jne 0x50b40b
test byte [esp + 0x20], 1
jne 0x50b422
test byte [esp + 0x50], 1
jne 0x50b439
jmp 0x50b4dd
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 0x50b44a
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], 0x55c51b
mov word [esp + 0x10], 0x302
mov eax, esp
lea ecx, [esp + 0x14]
push eax
call fcn.0054f5a2
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 0x50b4bf
push dword [esp + 0x1c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x20], 1
je 0x50b382
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x50], 1
je 0x50b4dd
push dword [esp + 0x58]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x50b4dd
cmp ebx, 0xfffffff8
jae 0x50b4e9
mov edi, dword [edx]
add edi, esi
cmp ebx, 0xb
jae 0x50b46d
mov edx, ebx
add dl, bl
mov byte [esp], dl
lea eax, [esp + 1]
cmp ecx, esi
ja 0x50b494
jmp 0x50b4a3
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.msvcrt.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.00407790