Function at 0x51eb00
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 edi, ecx
mov esi, dword [ebp + 8]
mov dword [esp], edx
call fcn.005042d0
mov dword [esp + 0xc], eax
mov ebx, edx
mov dword [esp + 0x10], edi
mov edi, dword [edi + 0x27c]
mov ecx, esi
push edi
call fcn.0054f5a8
mov ecx, edi
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
sub edx, eax
cmp edx, 9
ja 0x51eb56
push 0xa
push str._section_
call fcn.0054f224
mov ecx, eax
mov eax, dword [eax + 0x10]
jmp 0x51eb72
mov word [eax + 8], 0x2720
mov dword [eax + 4], 0x6e6f6974
mov dword [eax], 0x63657320
mov eax, dword [ecx + 0x10]
add eax, 0xa
mov dword [ecx + 0x10], eax
mov edx, dword [ecx + 0xc]
sub edx, eax
cmp edx, ebx
mov edi, dword [esp + 0x10]
jae 0x51eb90
push ebx
push dword [esp + 0x10]
call fcn.0054f224
mov ecx, eax
mov eax, dword [eax + 0x10]
jmp 0x51ebae
test ebx, ebx
je 0x51ebae
push ebx
push dword [esp + 0x10]
push eax
mov esi, ecx
call sub.msvcrt.dll_memcpy
mov ecx, esi
add esp, 0xc
mov eax, dword [esi + 0x10]
add eax, ebx
mov dword [esi + 0x10], eax
mov edx, dword [ecx + 0xc]
sub edx, eax
cmp edx, 1
ja 0x51ebcb
push 2
push 0x5610a8
call fcn.0054f224
mov ecx, eax
mov eax, dword [eax + 0x10]
jmp 0x51ebd9
mov word [eax], 0x2027
mov eax, dword [ecx + 0x10]
add eax, 2
mov dword [ecx + 0x10], eax
mov esi, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
sub edx, eax
cmp edx, 8
ja 0x51ebf6
push 9
push str.contains
call fcn.0054f224
mov ecx, eax
jmp 0x51ec0b
mov byte [eax + 8], 0x20
mov dword [eax + 4], 0x736e6961
mov dword [eax], 0x746e6f63
add dword [ecx + 0x10], 9
push esi
call fcn.0054f260
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 9
ja 0x51ec2e
mov ecx, eax
push 0xa
push str._entries:_n
call fcn.0054f224
jmp 0x51ec45
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.005054e0
test byte [esp + 8], 1
jne 0x51ec81
mov edx, dword [esp + 4]
mov ecx, edi
call fcn.005042d0
mov dword [esp], eax
mov ebx, edx
test byte [esp + 8], 1
jne 0x51ee2e
jmp 0x51ee43
mov edi, dword [edi + 0x3c]
lea ecx, [esp + 0x48]
push edi
call fcn.00500980
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.0054f434
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], 0x902
lea ebx, [esp + 0x30]
lea esi, [esp + 0x70]
mov ecx, esi
push ebx
call fcn.0054f5a2
mov ecx, esi
push str.invalid_section_linked_to
push 0
call fcn.0054f9b6
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x60], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x60]
push 0x556440
call fcn.0054f9a4
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x48], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 8], 1
je 0x51ed5c
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.0054f518
add esp, 8
movzx eax, byte [esp + 0x54]
test al, 1
je 0x51ed85
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
jmp 0x51ed8b
shr eax, 1
lea edx, [esp + 0x55]
mov esi, dword [esp]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.0054f9aa
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x18], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov word [esp + 0x40], 0x104
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x10]
mov ecx, edi
push ebx
call fcn.005394d0
test byte [esp + 0x18], 1
jne 0x51f008
test byte [esp + 0x54], 1
jne 0x51f01f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x51edf2
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x48], 1
jne 0x51f03c
test byte [esp + 0x60], 1
jne 0x51f053
test byte [esp + 0x70], 1
je 0x51ee1b
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 0x51ee43
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x51ee43
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 0x51ee66
push 7
push str._Addr:
call fcn.0054f224
mov ecx, eax
jmp 0x51ee77
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.0054f242
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 9
ja 0x51eed4
mov ecx, eax
push 0xa
push str.__Offset:
call fcn.0054f224
jmp 0x51eeeb
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.0054f242
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 7
ja 0x51ef4a
mov ecx, eax
push 8
push str.__Link:
call fcn.0054f224
jmp 0x51ef5b
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.0054f260
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 1
ja 0x51efc7
mov ecx, eax
push 2
push 0x556c1d
call fcn.0054f224
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp ebx, edx
ja 0x51efde
test ebx, ebx
je 0x51efad
push ebx
push dword [esp + 4]
push ecx
mov esi, eax
call sub.msvcrt.dll_memcpy
mov eax, esi
add esp, 0xc
add ebx, dword [esi + 0x10]
mov dword [esi + 0x10], ebx
mov ecx, ebx
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp edx, 1
ja 0x51eff7
mov ecx, eax
push 2
push 0x55e592
call fcn.0054f224
jmp 0x51f000
mov word [ecx], 0x2820
mov ecx, dword [eax + 0x10]
add ecx, 2
mov dword [eax + 0x10], ecx
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp ebx, edx
jbe 0x51ef8f
mov ecx, eax
push ebx
push dword [esp + 4]
call fcn.0054f224
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp edx, 1
jbe 0x51efb7
mov word [ecx], 0xa29
add dword [eax + 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 0x51ede5
push dword [esp + 0x5c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x51eded
jmp 0x51edf2
push dword [esp + 0x50]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x60], 1
je 0x51ee08
push dword [esp + 0x68]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x70], 1
jne 0x51ee0f
jmp 0x51ee1b