Function at 0x51eac0
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.00504290
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.0054a744
mov ecx, edi
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
sub edx, eax
cmp edx, 9
ja 0x51eb16
push 0xa
push str._section_
call fcn.0054a3c0
mov ecx, eax
mov eax, dword [eax + 0x10]
jmp 0x51eb32
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 0x51eb50
push ebx
push dword [esp + 0x10]
call fcn.0054a3c0
mov ecx, eax
mov eax, dword [eax + 0x10]
jmp 0x51eb6e
test ebx, ebx
je 0x51eb6e
push ebx
push dword [esp + 0x10]
push eax
mov esi, ecx
call sub.api_ms_win_crt_private_l1_1_0.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 0x51eb8b
push 2
push 0x55c0a8
call fcn.0054a3c0
mov ecx, eax
mov eax, dword [eax + 0x10]
jmp 0x51eb99
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 0x51ebb6
push 9
push str.contains
call fcn.0054a3c0
mov ecx, eax
jmp 0x51ebcb
mov byte [eax + 8], 0x20
mov dword [eax + 4], 0x736e6961
mov dword [eax], 0x746e6f63
add dword [ecx + 0x10], 9
push esi
call fcn.0054a3fc
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 9
ja 0x51ebee
mov ecx, eax
push 0xa
push str._entries:_n
call fcn.0054a3c0
jmp 0x51ec05
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.005054a0
test byte [esp + 8], 1
jne 0x51ec41
mov edx, dword [esp + 4]
mov ecx, edi
call fcn.00504290
mov dword [esp], eax
mov ebx, edx
test byte [esp + 8], 1
jne 0x51edee
jmp 0x51ee03
mov edi, dword [edi + 0x3c]
lea ecx, [esp + 0x48]
push edi
call fcn.00500940
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.0054a5d0
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.0054a73e
mov ecx, esi
push str.invalid_section_linked_to
push 0
call fcn.0054ab52
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 0x551440
call fcn.0054ab40
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 0x51ed1c
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.0054a6b4
add esp, 8
movzx eax, byte [esp + 0x54]
test al, 1
je 0x51ed45
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
jmp 0x51ed4b
shr eax, 1
lea edx, [esp + 0x55]
mov esi, dword [esp]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.0054ab46
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.00539490
test byte [esp + 0x18], 1
jne 0x51efc8
test byte [esp + 0x54], 1
jne 0x51efdf
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x51edb2
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x48], 1
jne 0x51effc
test byte [esp + 0x60], 1
jne 0x51f013
test byte [esp + 0x70], 1
je 0x51eddb
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 0x51ee03
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x51ee03
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 0x51ee26
push 7
push str._Addr:
call fcn.0054a3c0
mov ecx, eax
jmp 0x51ee37
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.0054a3de
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 9
ja 0x51ee94
mov ecx, eax
push 0xa
push str.__Offset:
call fcn.0054a3c0
jmp 0x51eeab
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.0054a3de
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 7
ja 0x51ef0a
mov ecx, eax
push 8
push str.__Link:
call fcn.0054a3c0
jmp 0x51ef1b
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.0054a3fc
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 1
ja 0x51ef87
mov ecx, eax
push 2
push 0x551c1d
call fcn.0054a3c0
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp ebx, edx
ja 0x51ef9e
test ebx, ebx
je 0x51ef6d
push ebx
push dword [esp + 4]
push ecx
mov esi, eax
call sub.api_ms_win_crt_private_l1_1_0.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 0x51efb7
mov ecx, eax
push 2
push 0x559592
call fcn.0054a3c0
jmp 0x51efc0
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 0x51ef4f
mov ecx, eax
push ebx
push dword [esp + 4]
call fcn.0054a3c0
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp edx, 1
jbe 0x51ef77
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 0x51eda5
push dword [esp + 0x5c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x51edad
jmp 0x51edb2
push dword [esp + 0x50]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x60], 1
je 0x51edc8
push dword [esp + 0x68]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x70], 1
jne 0x51edcf
jmp 0x51eddb