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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [esp], edx
call fcn.00505ab0
mov dword [esp + 0xc], eax
mov edi, edx
mov dword [esp + 0x10], ebx
mov ebx, dword [ebx + 0x27c]
mov ecx, esi
push ebx
call fcn.00550b4c
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
sub ecx, eax
cmp ecx, 9
ja 0x51fe79
mov ecx, ebx
push 0xa
push str._section_
call fcn.005507d4
mov ebx, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, edi
jb 0x51fe9e
test edi, edi
je 0x51feaf
push edi
push dword [esp + 0x10]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x10]
add eax, edi
mov dword [ebx + 0x10], eax
jmp 0x51feaf
mov word [eax + 8], 0x2720
mov dword [eax + 4], 0x6e6f6974
mov dword [eax], 0x63657320
mov eax, dword [ebx + 0x10]
add eax, 0xa
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, edi
jae 0x51fe5d
mov ecx, ebx
push edi
push dword [esp + 0x10]
call fcn.005507d4
mov ebx, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, 1
mov edi, dword [esp + 0x10]
ja 0x51fed2
mov ecx, ebx
push 2
push 0x5613d9
call fcn.005507d4
mov ebx, eax
mov eax, dword [eax + 0x10]
jmp 0x51fee0
mov word [eax], 0x2027
mov eax, dword [ebx + 0x10]
add eax, 2
mov dword [ebx + 0x10], eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, 8
ja 0x51feff
mov ecx, ebx
push 9
push str.contains
call fcn.005507d4
mov ebx, eax
jmp 0x51ff14
mov byte [eax + 8], 0x20
mov dword [eax + 4], 0x736e6961
mov dword [eax], 0x746e6f63
add dword [ebx + 0x10], 9
mov ecx, ebx
push esi
call fcn.00550810
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 9
ja 0x51ff39
mov ecx, eax
push 0xa
push str._entries:_n
call fcn.005507d4
jmp 0x51ff50
mov word [ecx + 8], 0xa3a
mov dword [ecx + 4], 0x73656972
mov dword [ecx], 0x746e6520
add dword [eax + 0x10], 0xa
mov esi, dword [esp]
mov eax, dword [esi + 0x28]
bswap eax
lea ecx, [esp + 4]
push eax
push dword [edi + 0x3c]
call fcn.00506ca0
test byte [esp + 8], 1
jne 0x51ff8c
mov edx, dword [esp + 4]
mov ecx, edi
call fcn.00505ab0
mov dword [esp], eax
mov ebx, edx
test byte [esp + 8], 1
jne 0x52014b
jmp 0x520160
mov edi, dword [edi + 0x3c]
lea ecx, [esp + 0x48]
push edi
call fcn.00502220
mov ecx, esi
sub esi, dword [esp + 0x48]
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
rol ax, 8
sar esi, 6
movzx eax, ax
mov ecx, dword [ecx + 4]
bswap ecx
push ecx
push eax
call fcn.005509d8
add esp, 8
mov word [esp + 0x28], 0x305
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], str._section_with_index
lea edi, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], esi
mov word [esp + 0x40], 0x802
lea ebx, [esp + 0x30]
lea esi, [esp + 0x70]
mov ecx, esi
push ebx
call fcn.00550b46
mov ecx, esi
push str.invalid_section_linked_to
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp + 0x60], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea ecx, [esp + 0x60]
push 0x558038
call fcn.00550f36
movsd xmm0, qword [eax]
movsd qword [esp + 0x48], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
xor eax, eax
test byte [esp + 8], 1
je 0x520073
mov eax, dword [esp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.00550abc
add esp, 8
movzx eax, byte [esp + 0x54]
test al, 1
je 0x52009c
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
jmp 0x5200a2
shr eax, 1
lea edx, [esp + 0x55]
mov esi, dword [esp]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.00550f3c
movsd xmm0, qword [eax]
movsd qword [esp + 0x18], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x40], 0x104
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x10]
mov ecx, edi
push ebx
call fcn.0053aad0
test byte [esp + 0x18], 1
jne 0x520327
test byte [esp + 0x54], 1
jne 0x52033e
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x52010f
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x48], 1
jne 0x52035b
test byte [esp + 0x60], 1
jne 0x520372
test byte [esp + 0x70], 1
je 0x520138
push dword [esp + 0x78]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esp], str._corrupt_
mov ebx, 9
test byte [esp + 8], 1
je 0x520160
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x520160
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0x27c]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
sub edx, eax
cmp edx, 6
ja 0x520183
push 7
push str._Addr:
call fcn.005507d4
mov ecx, eax
jmp 0x520194
mov dword [eax + 3], 0x203a7264
mov dword [eax], 0x64644120
add dword [ecx + 0x10], 7
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
bswap edx
bswap eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0x10
mov word [esp + 0x44], 1
mov byte [esp + 0x46], 0
lea eax, [esp + 0x30]
push eax
call fcn.005507f2
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 9
ja 0x5201f1
mov ecx, eax
push 0xa
push str.__Offset:
call fcn.005507d4
jmp 0x520208
mov word [ecx + 8], 0x203a
mov dword [ecx + 4], 0x74657366
mov dword [ecx], 0x664f2020
add dword [eax + 0x10], 0xa
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
bswap edx
bswap ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 8
mov word [esp + 0x2c], 1
mov byte [esp + 0x2e], 1
lea edx, [esp + 0x18]
mov ecx, eax
push edx
call fcn.005507f2
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 7
ja 0x520267
mov ecx, eax
push 8
push str.__Link:
call fcn.005507d4
jmp 0x520278
mov dword [ecx + 4], 0x203a6b6e
mov dword [ecx], 0x694c2020
add dword [eax + 0x10], 8
mov edx, dword [esi + 0x28]
bswap edx
mov ecx, eax
push edx
call fcn.00550810
mov esi, eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub ecx, eax
cmp ecx, 1
ja 0x5202e4
mov ecx, esi
push 2
push 0x558815
call fcn.005507d4
mov esi, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ebx, ecx
ja 0x5202fb
test ebx, ebx
je 0x5202ca
push ebx
push dword [esp + 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add ebx, dword [esi + 0x10]
mov dword [esi + 0x10], ebx
mov eax, ebx
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, 1
ja 0x520316
mov ecx, esi
push 2
push 0x55e9ce
call fcn.005507d4
jmp 0x52031f
mov word [eax], 0x2820
mov eax, dword [esi + 0x10]
add eax, 2
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ebx, ecx
jbe 0x5202b0
mov ecx, esi
push ebx
push dword [esp + 4]
call fcn.005507d4
mov esi, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, 1
jbe 0x5202d4
mov word [eax], 0xa29
add dword [esi + 0x10], 2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x54], 1
je 0x520102
push dword [esp + 0x5c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x52010a
jmp 0x52010f
push dword [esp + 0x50]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x60], 1
je 0x520125
push dword [esp + 0x68]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x70], 1
jne 0x52012c
jmp 0x520138