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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov dword [esp + 0x8c], edx
mov esi, ecx
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x34], str.BuildAttributes
mov dword [esp + 0x38], 0xf
mov eax, dword [ecx]
sub esp, 8
movsd xmm0, qword [esp + 0x3c]
movsd qword [esp], xmm0
mov dword [esp + 0x90], ecx
call dword [eax + 0x7c]
lea ecx, [esp + 0x98]
mov dword [esp + 4], esi
push dword [esi + 0x3c]
call fcn.00500940
mov esi, dword [esp + 0x9c]
test esi, esi
je 0x51df39
mov eax, dword [esp + 0x98]
shl esi, 6
lea ebx, [eax + 4]
jmp 0x51d8ed
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
add ebx, 0x40
add eax, 0x40
add esi, 0xffffffc0
je 0x51df39
cmp dword [ebx], 0x3000070
jne 0x51d8de
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], esi
lea eax, [ebx - 4]
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 8]
push dword [eax + 0x3c]
call fcn.0050b4b0
test byte [esp + 0x50], 1
jne 0x51dad0
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x51dcc7
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x20]
movzx eax, byte [edi]
mov dword [esp + 0x34], str.FormatVersion
mov dword [esp + 0x38], 0xd
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov eax, dword [ecx]
sub esp, 0x10
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x44]
movsd qword [esp], xmm0
call dword [eax + 0xa8]
mov eax, dword [esp + 0x8c]
mov eax, dword [eax]
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], esi
sub esp, 0x10
movsd xmm0, qword [esp + 0xa0]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x6c]
call fcn.0054a4c8
cmp dword [esp + 0x5c], 0
je 0x51d8d6
mov eax, dword [esp + 4]
mov edi, dword [eax + 0x3c]
lea ecx, [esp + 8]
push edi
call fcn.00500940
mov esi, dword [esp + 0x30]
sub esi, dword [esp + 8]
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
rol ax, 8
sar esi, 6
movzx eax, ax
mov ecx, dword [ebx]
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 eax, [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x44], 0x902
lea esi, [esp + 0x68]
mov ecx, esi
lea eax, [esp + 0x34]
push eax
call fcn.0054a73e
mov ecx, esi
push str.unable_to_dump_attributes_from_the
push 0
call fcn.0054ab52
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
lea ecx, [esp + 0x48]
push 0x551440
call fcn.0054ab40
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x5c], 0
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0054a6b4
add esp, 8
movzx eax, byte [esp + 0x74]
test al, 1
je 0x51ddd5
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
jmp 0x51dddb
mov eax, dword [esp + 4]
mov edi, dword [eax + 0x3c]
lea ecx, [esp + 8]
push edi
call fcn.00500940
mov esi, dword [esp + 0x30]
sub esi, dword [esp + 8]
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
rol ax, 8
sar esi, 6
movzx eax, ax
mov ecx, dword [ebx]
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 eax, [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x44], 0x902
lea esi, [esp + 0x74]
mov ecx, esi
lea eax, [esp + 0x34]
push eax
call fcn.0054a73e
mov ecx, esi
push str.unable_to_read_the_content_of_the
push 0
call fcn.0054ab52
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x68], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x68]
push 0x551440
call fcn.0054ab40
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 0x50], 1
je 0x51dbb0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x48], 0
mov dword [esp + 0x84], eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0054a6b4
add esp, 8
movzx eax, byte [esp + 0x5c]
test al, 1
je 0x51dbdf
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
jmp 0x51dbe5
shr eax, 1
lea edx, [esp + 0x5d]
mov esi, dword [esp + 0x58]
lea ecx, [esp + 8]
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 + 0x44], 0x104
lea eax, [esp + 0x18]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 4]
lea eax, [esp + 0x34]
push eax
call fcn.00539490
test byte [esp + 0x18], 1
jne 0x51dc68
test byte [esp + 0x5c], 1
jne 0x51dc7b
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x51dc4e
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 8], 1
jne 0x51dc94
test byte [esp + 0x68], 1
jne 0x51dca7
test byte [esp + 0x74], 1
jne 0x51dcbe
jmp 0x51df10
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x5c], 1
je 0x51dc3e
push dword [esp + 0x64]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x84]
test ecx, ecx
jne 0x51dc49
jmp 0x51dc4e
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x68], 1
je 0x51dc5c
push dword [esp + 0x70]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x74], 1
je 0x51df10
push dword [esp + 0x7c]
jmp 0x51df08
mov eax, dword [esp + 4]
mov edi, dword [eax + 0x3c]
lea ecx, [esp + 8]
push edi
call fcn.00500940
mov esi, dword [esp + 0x30]
sub esi, dword [esp + 8]
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
rol ax, 8
sar esi, 6
movzx eax, ax
mov ecx, dword [ebx]
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 eax, [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x44], 0x902
lea edi, [esp + 0x68]
mov ecx, edi
lea esi, [esp + 0x34]
push esi
call fcn.0054a73e
mov ecx, edi
push 0x55b533
push 0
call fcn.0054ab52
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 8]
push str._is_empty
call fcn.0054ab40
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 + 0x44], 0x104
lea eax, [esp + 0x18]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 4]
push esi
call fcn.00539490
test byte [esp + 0x18], 1
jne 0x51ded6
test byte [esp + 8], 1
mov esi, dword [esp + 0x58]
jne 0x51def1
test byte [esp + 0x68], 1
jne 0x51df04
jmp 0x51df10
shr eax, 1
lea edx, [esp + 0x75]
lea ecx, [esp + 8]
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 + 0x44], 0x104
lea eax, [esp + 0x18]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 4]
lea eax, [esp + 0x34]
push eax
call fcn.00539490
test byte [esp + 0x18], 1
jne 0x51de62
test byte [esp + 0x74], 1
jne 0x51de75
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x51de40
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 8], 1
jne 0x51de8e
test byte [esp + 0x48], 1
jne 0x51dea1
test byte [esp + 0x68], 1
jne 0x51deb4
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jne 0x51decc
jmp 0x51d8d6
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x74], 1
je 0x51de30
push dword [esp + 0x7c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x80]
test ecx, ecx
jne 0x51de3b
jmp 0x51de40
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x48], 1
je 0x51de4e
push dword [esp + 0x50]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x68], 1
je 0x51de55
push dword [esp + 0x70]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x51d8d6
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51d8d6
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 8], 1
mov esi, dword [esp + 0x58]
je 0x51ddc5
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x68], 1
je 0x51df10
push dword [esp + 0x70]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x50], 1
je 0x51d8da
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x48], 0
test ecx, ecx
je 0x51d8da
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51d8da
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx]
call dword [eax + 0x80]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret