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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov ebx, edx
mov edi, ecx
mov esi, dword [ecx + 0x220]
mov eax, esi
test edx, edx
je 0x50d245
mov eax, dword [edi + 0x224]
mov dword [esp + 0x2c], eax
je 0x50d299
cmp byte [edi + 0x188], 0
je 0x50d8df
mov ecx, dword [edi + 0x210]
mov edx, dword [edi + 0x214]
mov eax, edx
shr eax, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ecx
shld edx, ecx, 0x18
mov dword [esp + 0x28], edx
lea ecx, [edi + 0x148]
call fcn.0050d8f0
mov dword [esp + 0x3c], eax
mov cl, 1
mov eax, edx
test edx, edx
jne 0x50d59e
jmp 0x50d8df
test esi, esi
je 0x50d8df
mov dword [esp + 4], esi
mov esi, dword [edi + 0x3c]
lea ecx, [esp + 0x58]
push esi
call fcn.00502220
test byte [esp + 0x60], 1
jne 0x50d385
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
sub esp, 0x10
movsd xmm0, qword [esp + 0x50]
movsd qword [esp + 8], xmm0
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], esi
lea ecx, [esp + 0x1c]
call fcn.00502840
test byte [esp + 0x60], 1
je 0x50d30c
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x58], 0
test ecx, ecx
je 0x50d30c
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x14], 1
jne 0x50d39d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edx
shr eax, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ecx
shld edx, ecx, 0x18
mov dword [esp + 0x28], edx
mov al, 1
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x220]
test eax, eax
je 0x50d474
lea ecx, [esp + 0xc]
push eax
push dword [edi + 0x3c]
call fcn.00508cd0
test byte [esp + 0x14], 1
sete al
test al, al
je 0x50d493
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
test byte [esp + 0x14], 1
jne 0x50d545
jmp 0x50d55a
mov eax, dword [esp + 0x58]
mov byte [esp + 0x14], 0xff
mov dword [esp + 0xc], eax
test byte [esp + 0x14], 1
je 0x50d317
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
mov esi, edi
lea edi, [esp + 0x84]
push eax
push edi
call fcn.00550abc
add esp, 8
mov ecx, edi
mov edi, esi
push str.unable_to_get_the_string_table_for_the_SHT_SYMTAB_section:
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp + 0x40], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x68], 0x104
lea eax, [esp + 0x40]
mov dword [esp + 0x58], eax
mov ecx, esi
lea eax, [esp + 0x58]
push eax
call fcn.0053aad0
test byte [esp + 0x40], 1
jne 0x50d667
test byte [esp + 0x84], 1
jne 0x50d681
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x50d43a
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x14], 1
je 0x50d456
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test ecx, ecx
je 0x50d456
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [edi + 0x220]
test eax, eax
jne 0x50d348
and byte [esp + 0x14], 0xfe
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov al, 1
test al, al
jne 0x50d365
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
mov esi, edi
lea edi, [esp + 0x84]
push eax
push edi
call fcn.00550abc
add esp, 8
mov ecx, edi
mov edi, esi
push str.unable_to_read_symbols_from_the_SHT_SYMTAB_section:
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp + 0x40], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x68], 0x104
lea eax, [esp + 0x40]
mov dword [esp + 0x58], eax
mov ecx, esi
lea eax, [esp + 0x58]
push eax
call fcn.0053aad0
test byte [esp + 0x40], 1
jne 0x50d6a1
test byte [esp + 0x84], 1
jne 0x50d6bb
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x50d530
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x20], 0
xor eax, eax
mov dword [esp + 0x3c], eax
test byte [esp + 0x14], 1
je 0x50d55a
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test ecx, ecx
je 0x50d55a
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x220]
mov ecx, dword [edx + 0x38]
mov eax, dword [edx + 0x3c]
mov esi, ecx
or esi, eax
je 0x50d588
bswap eax
bswap ecx
mov esi, dword [edx + 0x20]
mov edx, dword [edx + 0x24]
bswap edx
bswap esi
push ecx
push eax
push esi
push edx
call fcn.0054af78
add esp, 0x10
jmp 0x50d58a
xor eax, eax
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x50d8df
mov dword [esp + 0x50], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 4], esi
mov dword [esp + 0x20], edx
lea ecx, [edx + edx*2]
lea ecx, [ecx*8 - 0x18]
xor edx, edx
mov esi, dword [esp + 0x3c]
nop
mov ah, byte [esi + edx + 5]
mov al, ah
cmp ah, 3
ja 0x50d5d8
lea esi, [edx + 0x18]
cmp ecx, edx
mov edx, esi
mov esi, dword [esp + 0x3c]
jne 0x50d5c0
test bl, bl
mov dword [esp + 0x54], edi
je 0x50d60c
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x190]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 0x1c]
add edx, dword [ecx + 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp + 0x30], 0
jmp 0x50d76a
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x50d6db
mov edx, dword [edi + 0x22c]
mov edi, dword [edi + 0x238]
test edi, edi
mov dword [esp + 8], edi
je 0x50d72b
mov dword [esp + 0x34], edx
mov edx, edi
mov edi, ecx
shr edi, 4
mov esi, ecx
shr esi, 9
xor esi, edi
lea ecx, [edx - 1]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
and esi, ecx
lea edi, [esi + esi*2]
mov ecx, dword [edx + edi*4]
cmp ecx, dword [esp + 4]
jne 0x50d6e1
lea edi, [edx + edi*4]
jmp 0x50d731
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x84], 1
je 0x50d42d
push dword [esp + 0x8c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x74]
test ecx, ecx
jne 0x50d435
jmp 0x50d43a
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x84], 1
je 0x50d523
push dword [esp + 0x8c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x50d52b
jmp 0x50d530
xor ecx, ecx
xor esi, esi
jmp 0x50d751
mov dword [esp + 4], ecx
mov dword [esp + 0x6c], 1
mov ecx, edx
mov edx, dword [esp + 8]
cmp dword [esp + 4], 0xfffff000
mov edi, edx
mov edx, ecx
je 0x50d72b
mov ecx, dword [esp + 0x6c]
add esi, ecx
inc ecx
mov dword [esp + 0x6c], ecx
and esi, dword [esp + 0x30]
lea ecx, [esi + esi*2]
lea edi, [edx + ecx*4]
mov ecx, dword [edx + ecx*4]
mov dword [esp + 4], ecx
cmp ecx, dword [esp + 0x2c]
mov ecx, edx
mov edx, dword [esp + 8]
je 0x50d737
jmp 0x50d6f3
lea esi, [edi + edi*2]
lea edi, [edx + esi*4]
mov ecx, edx
mov edx, dword [esp + 8]
lea edx, [edx + edx*2]
lea ecx, [ecx + edx*4]
cmp edi, ecx
je 0x50d749
mov ecx, dword [edi + 4]
mov esi, dword [edi + 8]
jmp 0x50d74d
xor ecx, ecx
xor esi, esi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x34], ecx
mov dword [esp + 4], esi
shr esi, 8
mov cl, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 8], 0
mov byte [esp + 0x27], al
xor edx, edx
cmp al, 4
setae dl
mov ecx, edi
mov edi, dword [edi]
push edx
push dword [esp + 0x54]
push dword [esp + 0x34]
call dword [edi + 0x110]
mov eax, dword [esp + 8]
shld eax, esi, 8
mov dword [esp + 0x2c], eax
shl esi, 8
movzx eax, byte [esp + 4]
or eax, esi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
shld eax, ecx, 8
shl ecx, 8
movzx edx, byte [esp + 0x18]
or edx, ecx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x20]
shl ecx, 3
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x28], ecx
xor edi, edi
mov dword [esp + 0x38], eax
xor ecx, ecx
cmp byte [esp + 0x27], 4
setae cl
mov edx, dword [esp + 0x3c]
add edx, edi
mov dword [esp + 4], edx
mov edx, edi
sar edx, 3
imul edx, edx, 0xaaaaaaab
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x30]
mov byte [esp + 0xa0], dl
mov esi, dword [esp + 0x5b]
lea edx, [esp + 0xa1]
mov dword [edx + 3], esi
mov esi, dword [esp + 0x58]
mov dword [edx], esi
mov esi, dword [esp + 8]
mov dword [esp + 0xa8], esi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x80], al
mov edx, ebx
mov bh, byte [esp + 0xe]
lea eax, [esp + 0x81]
mov byte [eax + 2], bh
movzx esi, word [esp + 0xc]
mov word [eax], si
mov eax, dword [esp + 0x54]
mov esi, dword [eax]
sub esp, 0x3c
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x30], ebx
mov ebx, edx
movsd xmm0, qword [esp + 0xb4]
movsd qword [esp + 0x28], xmm0
movups xmm0, xmmword [esp + 0xcc]
movups xmm1, xmmword [esp + 0xdc]
movups xmmword [esp + 0x18], xmm1
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x38], ecx
movzx ecx, bl
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov ecx, eax
call dword [esi + 0x114]
mov eax, dword [esp + 0x38]
add edi, 0x18
cmp dword [esp + 0x28], edi
jne 0x50d7d0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret