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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x128
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [esp + 0xf0], ecx
mov dword [ecx + 8], 0
lea ecx, [esp + 0x118]
mov dword [esp + 0x48], edx
push dword [edx + 0x3c]
call fcn.00500980
mov ecx, dword [esp + 0x11c]
test ecx, ecx
je 0x513712
mov eax, ecx
mov esi, dword [esp + 0x118]
shl eax, 6
add eax, esi
mov dword [esp + 0x108], eax
xor eax, eax
xor ecx, ecx
jmp 0x51228e
add esi, 0x40
cmp esi, dword [esp + 0x108]
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x110]
je 0x513712
mov edi, ecx
mov edx, eax
add eax, 1
mov dword [esp + 0x114], eax
adc ecx, 0
mov dword [esp + 0x110], ecx
cmp dword [esi + 4], 0x11000000
jne 0x512270
mov dword [esp + 0x4c], edi
mov dword [esp + 0x20], edx
mov eax, dword [esi + 0x28]
bswap eax
lea ecx, [esp + 0xd8]
push eax
mov ebx, dword [esp + 0x4c]
push dword [ebx + 0x3c]
call fcn.005054e0
test byte [esp + 0xdc], 1
mov dword [esp], esi
jne 0x5123f0
mov eax, dword [esi + 0x2c]
bswap eax
lea ecx, [esp + 0xe0]
push eax
push dword [esp + 0xdc]
push dword [ebx + 0x3c]
call fcn.00506c00
test byte [esp + 0xe4], 1
jne 0x512519
mov eax, dword [esp + 0xe0]
mov dword [esp + 4], eax
mov edi, dword [esi + 0x2c]
mov esi, dword [esp + 0xd8]
mov ebx, dword [ebx + 0x3c]
lea ecx, [esp + 0x80]
push ebx
call fcn.00500980
test byte [esp + 0x88], 1
jne 0x512747
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
sub esp, 0x10
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], ebx
lea ecx, [esp + 0x34]
call fcn.00500fa0
test byte [esp + 0x88], 1
je 0x512398
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x80], 0
test ecx, ecx
je 0x512398
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x2c], 1
mov ebx, dword [esp + 0x48]
jne 0x512766
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 4]
mov ecx, dword [ecx]
bswap ecx
cmp ecx, eax
jae 0x51298b
mov edi, dword [esp + 0x24]
test edi, edi
mov esi, dword [esp]
je 0x5136f8
add edi, ecx
push edi
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [esp + 4], eax
test byte [esp + 0x2c], 1
jne 0x512b25
jmp 0x512b40
mov edi, dword [ebx + 0x3c]
lea ecx, [esp + 0x30]
push edi
call fcn.00500980
mov ecx, esi
sub esi, dword [esp + 0x30]
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 + 0x18], 0x305
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], str._section_with_index
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], esi
mov word [esp + 0x90], 0x902
lea esi, [esp + 0xc0]
mov ecx, esi
lea eax, [esp + 0x80]
push eax
call fcn.0054f5a2
mov ecx, esi
push str.unable_to_get_the_symbol_table_for
push 0
call fcn.0054f9b6
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x50], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x50]
push 0x556440
call fcn.0054f9a4
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 0xdc], 1
je 0x5124e3
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xd8], 0
mov dword [esp + 0x100], eax
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0054f518
add esp, 8
movzx eax, byte [esp + 0x24]
test al, 1
je 0x512642
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
jmp 0x512648
mov edi, dword [ebx + 0x3c]
lea ecx, [esp + 0x30]
push edi
call fcn.00500980
mov ecx, esi
sub esi, dword [esp + 0x30]
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 + 0x18], 0x305
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], str._section_with_index
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], esi
mov word [esp + 0x90], 0x902
lea esi, [esp + 0xc0]
mov ecx, esi
lea eax, [esp + 0x80]
push eax
call fcn.0054f5a2
mov ecx, esi
push str.unable_to_get_the_signature_symbol_for
push 0
call fcn.0054f9b6
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x50], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x50]
push 0x556440
call fcn.0054f9a4
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 0xe4], 1
je 0x51260c
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xe0], 0
mov dword [esp + 0x104], eax
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0054f518
add esp, 8
movzx eax, byte [esp + 0x24]
test al, 1
je 0x512886
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
jmp 0x51288c
shr eax, 1
lea edx, [esp + 0x25]
mov esi, dword [esp]
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.0054f9aa
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 word [esp + 0x90], 0x104
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov ecx, ebx
lea eax, [esp + 0x80]
push eax
call fcn.005394d0
test byte [esp + 8], 1
jne 0x5126f0
test byte [esp + 0x24], 1
jne 0x512703
mov ecx, dword [esp + 0x100]
test ecx, ecx
je 0x5126b7
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x30], 1
jne 0x51271c
test byte [esp + 0x50], 1
jne 0x51272f
test byte [esp + 0xc0], 1
je 0x5126de
push dword [esp + 0xc8]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esp + 4], 3
mov edi, 0x55bc43
jmp 0x512b70
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x24], 1
je 0x5126a7
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x100]
test ecx, ecx
jne 0x5126b2
jmp 0x5126b7
push dword [esp + 0x38]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x50], 1
je 0x5126c5
push dword [esp + 0x58]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xc0], 1
jne 0x5126cf
jmp 0x5126de
mov eax, dword [esp + 0x80]
mov byte [esp + 0x2c], 0xff
mov dword [esp + 0x24], eax
test byte [esp + 0x2c], 1
mov ebx, dword [esp + 0x48]
je 0x5123a7
mov ebx, dword [ebx + 0x3c]
lea ecx, [esp + 0x30]
push ebx
call fcn.00500980
mov edi, esi
sub edi, dword [esp + 0x30]
mov eax, dword [ebx]
movzx eax, word [eax + 0x12]
rol ax, 8
sar edi, 6
movzx eax, ax
mov ecx, dword [esi + 4]
bswap ecx
push ecx
push eax
call fcn.0054f434
add esp, 8
mov word [esp + 0x18], 0x305
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], str._section_with_index
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], edi
mov word [esp + 0x90], 0x902
lea esi, [esp + 0xc0]
mov ecx, esi
lea eax, [esp + 0x80]
push eax
call fcn.0054f5a2
mov ecx, esi
push str.unable_to_get_the_string_table_for
push 0
call fcn.0054f9b6
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x50], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x50]
push 0x556440
call fcn.0054f9a4
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 0x2c], 1
je 0x512850
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0xe8], eax
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0054f518
add esp, 8
movzx eax, byte [esp + 0x68]
test al, 1
je 0x512a61
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
jmp 0x512a67
shr eax, 1
lea edx, [esp + 0x25]
mov esi, dword [esp]
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.0054f9aa
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 word [esp + 0x90], 0x104
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov ecx, ebx
lea eax, [esp + 0x80]
push eax
call fcn.005394d0
test byte [esp + 8], 1
jne 0x512934
test byte [esp + 0x24], 1
jne 0x512947
mov ecx, dword [esp + 0x104]
test ecx, ecx
je 0x5128fb
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x30], 1
jne 0x512960
test byte [esp + 0x50], 1
jne 0x512973
test byte [esp + 0xc0], 1
je 0x512922
push dword [esp + 0xc8]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esp + 4], 3
mov edi, 0x55bc43
jmp 0x512b40
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x24], 1
je 0x5128eb
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x104]
test ecx, ecx
jne 0x5128f6
jmp 0x5128fb
push dword [esp + 0x38]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x50], 1
je 0x512909
push dword [esp + 0x58]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xc0], 1
jne 0x512913
jmp 0x512922
bswap edi
mov dword [esp + 0xc0], str.unable_to_get_the_name_of_the_symbol_with_index
mov dword [esp + 0xc8], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0xe8], eax
mov word [esp + 0xd0], 0x903
lea eax, [esp + 0xc0]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], str.:_st_name__0x
mov word [esp + 0x60], 0x302
mov dword [esp + 0x6c], 0
lea eax, [esp + 0x50]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x38], eax
mov word [esp + 0x40], 0xf02
lea eax, [esp + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 0x10], str.__is_past_the_end_of_the_string_table_of_size_0x
mov word [esp + 0x18], 0x302
mov dword [esp + 0xec], 0
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
lea eax, [esp + 0xe8]
mov dword [esp + 0x88], eax
mov word [esp + 0x90], 0xf02
mov ecx, ebx
lea eax, [esp + 0x80]
push eax
call fcn.005394d0
mov dword [esp + 4], 3
mov edi, 0x55bc43
mov esi, dword [esp]
test byte [esp + 0x2c], 1
jne 0x512b25
jmp 0x512b40
shr eax, 1
lea edx, [esp + 0x69]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp]
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.0054f9aa
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 word [esp + 0x90], 0x104
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov ecx, ebx
lea eax, [esp + 0x80]
push eax
call fcn.005394d0
test byte [esp + 8], 1
jne 0x51368b
test byte [esp + 0x68], 1
jne 0x5136a2
mov ecx, dword [esp + 0xe8]
test ecx, ecx
je 0x512ae2
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x30], 1
jne 0x5136c2
test byte [esp + 0x50], 1
jne 0x5136d9
test byte [esp + 0xc0], 1
je 0x512b11
push dword [esp + 0xc8]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esp + 4], 3
mov edi, 0x55bc43
test byte [esp + 0x2c], 1
je 0x512b40
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], 0
test ecx, ecx
je 0x512b40
mov eax, dword [ecx]
call dword [eax + 4]
nop word [eax + eax]
test byte [esp + 0xe4], 1
je 0x512b70
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0xe0], 0
test ecx, ecx
je 0x512b70
mov eax, dword [ecx]
call dword [eax + 4]
nop word cs:[eax + eax]
test byte [esp + 0xdc], 1
je 0x512b95
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0xd8], 0
test ecx, ecx
je 0x512b95
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x50]
push esi
push dword [ebx + 0x3c]
call fcn.00501ba0
test byte [esp + 0x58], 1
mov dword [esp + 0x78], edi
jne 0x512be0
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x512dfa
mov eax, dword [esp + 0x50]
mov dword [esp + 0x7c], eax
test byte [esp + 0x58], 1
jne 0x512f61
jmp 0x512f76
mov edi, dword [ebx + 0x3c]
lea ecx, [esp + 0x30]
push edi
call fcn.00500980
mov ecx, esi
sub esi, dword [esp + 0x30]
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 + 0x18], 0x305
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], str._section_with_index
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], esi
mov word [esp + 0x90], 0x902
lea esi, [esp + 0x24]
mov ecx, esi
lea eax, [esp + 0x80]
push eax
call fcn.0054f5a2
mov ecx, esi
push str.unable_to_get_the_content_of_the
push 0
call fcn.0054f9b6
mov ecx, dword [eax + 8]
mov dword [esp + 0xc8], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0xc0], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0xc0]
push 0x556440
call fcn.0054f9a4
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 0x58], 1
je 0x512cd0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0054f518
add esp, 8
movzx eax, byte [esp + 0x68]
test al, 1
je 0x512cff
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
jmp 0x512d05
shr eax, 1
lea edx, [esp + 0x69]
mov esi, dword [esp]
mov edi, dword [esp + 0x78]
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.0054f9aa
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 word [esp + 0x90], 0x104
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov ecx, ebx
lea eax, [esp + 0x80]
push eax
call fcn.005394d0
test byte [esp + 8], 1
jne 0x512d95
test byte [esp + 0x68], 1
jne 0x512da8
mov ecx, dword [esp + 0xfc]
test ecx, ecx
je 0x512d78
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x30], 1
jne 0x512dc1
test byte [esp + 0xc0], 1
jne 0x512dd7
test byte [esp + 0x24], 1
jne 0x512df1
jmp 0x512f50
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x68], 1
je 0x512d68
push dword [esp + 0x70]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0xfc]
test ecx, ecx
jne 0x512d73
jmp 0x512d78
push dword [esp + 0x38]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xc0], 1
je 0x512d89
push dword [esp + 0xc8]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x24], 1
je 0x512f50
push dword [esp + 0x2c]
jmp 0x512f48
mov ebx, dword [esp + 0x48]
mov edi, dword [ebx + 0x3c]
lea ecx, [esp + 0x30]
push edi
call fcn.00500980
mov ecx, esi
sub esi, dword [esp + 0x30]
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 + 0x18], 0x305
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], str._section_with_index
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], esi
mov word [esp + 0x90], 0x902
lea edi, [esp + 0xc0]
mov ecx, edi
lea esi, [esp + 0x80]
push esi
call fcn.0054f5a2
mov ecx, edi
push str.unable_to_read_the_section_group_flag_from_the
push 0
call fcn.0054f9b6
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x30]
push str.:_the_section_is_empty
call fcn.0054f9a4
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 word [esp + 0x90], 0x104
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov ecx, ebx
push esi
call fcn.005394d0
test byte [esp + 8], 1
jne 0x512f11
test byte [esp + 0x30], 1
jne 0x512f24
test byte [esp + 0xc0], 1
mov esi, dword [esp]
mov edi, dword [esp + 0x78]
jne 0x512f41
jmp 0x512f50
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x30], 1
je 0x512efe
push dword [esp + 0x38]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xc0], 1
mov esi, dword [esp]
mov edi, dword [esp + 0x78]
je 0x512f50
push dword [esp + 0xc8]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esp + 0x7c], 0
xor ebx, ebx
test byte [esp + 0x58], 1
je 0x512f76
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x50], 0
test ecx, ecx
je 0x512f76
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x48]
mov edx, esi
call fcn.005042d0
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], eax
mov eax, dword [0x5642d4]
cmp byte [eax], 0
je 0x512fcb
mov eax, dword [esp + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
sub esp, 0xc
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x94]
mov dword [esp], eax
call fcn.0054f512
add esp, 0xc
jmp 0x513058
test edi, edi
mov ecx, dword [esp + 4]
je 0x512ff9
cmp ecx, 0xfffffff8
jae 0x513724
cmp ecx, 0xb
jae 0x513010
mov eax, ecx
add al, cl
mov byte [esp + 0x88], al
lea edi, [esp + 0x89]
test ecx, ecx
jne 0x513042
jmp 0x513054
lea eax, [esp + 0x88]
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
jmp 0x513058
mov esi, ecx
or esi, 7
lea eax, [esi + 1]
push eax
call sub.libc.dll_operator_new_unsigned_int_
mov ecx, dword [esp + 8]
add esp, 4
mov edi, eax
mov dword [esp + 0x90], eax
add esi, 2
mov dword [esp + 0x88], esi
mov esi, dword [esp]
mov dword [esp + 0x8c], ecx
push ecx
push dword [esp + 0x7c]
push edi
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x10]
add esp, 0xc
mov byte [edi + ecx], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
bswap eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], ecx
mov eax, dword [esi + 0x28]
bswap eax
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0x2c]
bswap eax
mov dword [esp + 0xac], eax
test ebx, ebx
je 0x5130a8
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
jmp 0x5130aa
xor eax, eax
bswap eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov ecx, dword [esp + 0xf0]
lea edx, [esp + 0x80]
call fcn.00453430
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x513102
mov dword [esp + 0xb8], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x88], 1
je 0x51311b
push dword [esp + 0x90]
call sub.libc.dll_operator_delete_void_
add esp, 4
test ebx, ebx
mov ecx, dword [esp + 0x7c]
je 0x512270
cmp ebx, 1
je 0x512270
mov eax, dword [esp + 0xf0]
mov edi, dword [eax + 4]
lea eax, [ecx + ebx*4]
mov dword [esp + 0x78], eax
add ecx, 4
mov dword [esp + 0x20], edi
jmp 0x513185
mov dword [ebx], 0x55bc43
mov dword [ebx + 4], 3
mov eax, dword [esp + 4]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
add ebx, 0x10
mov esi, dword [esp]
mov dword [edi - 8], ebx
mov ecx, dword [esp + 0x7c]
add ecx, 4
cmp ecx, dword [esp + 0x78]
je 0x512270
mov dword [esp + 0x7c], ecx
mov esi, dword [ecx]
bswap esi
lea ecx, [esp + 8]
mov ebx, dword [esp + 0x48]
push dword [ebx + 0x3c]
call fcn.00500980
test byte [esp + 0x10], 1
jne 0x5131f0
cmp esi, dword [esp + 0xc]
jae 0x513300
mov edx, esi
shl edx, 6
add edx, dword [esp + 8]
mov ecx, ebx
call fcn.005042d0
mov dword [esp + 0x4c], eax
mov dword [esp + 0xf4], edx
mov ebx, dword [edi - 8]
mov eax, dword [edi - 4]
cmp ebx, eax
jae 0x5135a5
mov eax, dword [esp + 0x4c]
mov dword [ebx], eax
mov eax, dword [esp + 0xf4]
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
jmp 0x513164
mov dword [esp + 4], esi
mov eax, dword [esp + 8]
mov dword [esp + 0x4c], eax
mov esi, dword [esp]
mov dword [esp + 0xc0], str.unable_to_get_the_section_with_index
mov eax, dword [esp + 4]
mov dword [esp + 0xc8], eax
mov word [esp + 0xd0], 0x903
lea eax, [esp + 0xc0]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], str._when_dumping_the
mov word [esp + 0x60], 0x302
mov edi, dword [ebx + 0x3c]
lea ecx, [esp + 0x30]
push edi
call fcn.00500980
mov ecx, esi
sub esi, dword [esp + 0x30]
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 + 0x18], 0x305
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], str._section_with_index
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], esi
mov word [esp + 0x90], 0x902
lea ecx, [esp + 0x24]
lea eax, [esp + 0x80]
push eax
call fcn.0054f5a2
movzx eax, byte [esp + 0x60]
cmp eax, 1
je 0x5132e0
test eax, eax
mov edi, dword [esp + 0x20]
jne 0x513390
mov word [esp + 0x40], 0x100
mov cl, 1
xor eax, eax
jmp 0x5133e0
lea edx, [esp + 0x24]
mov dword [esp + 0x30], edx
mov word [esp + 0x40], 0x104
mov al, 4
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
jmp 0x5133ce
mov dword [esp + 0x80], str.invalid_section_index:
mov dword [esp + 4], esi
mov dword [esp + 0x88], esi
mov word [esp + 0x90], 0x903
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
call fcn.0054f3f2
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x3c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x8c]
mov dword [esp], eax
mov dword [esp + 0x58], esi
mov ecx, esi
call fcn.0054f20c
test byte [esp + 0x10], 1
je 0x5131fc
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0
test ecx, ecx
mov esi, dword [esp]
je 0x5131ff
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5131ff
cmp byte [esp + 0x61], 1
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x50]
cmovne ecx, edx
movzx eax, al
mov edx, 2
cmovne eax, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], ecx
mov byte [esp + 0x40], al
mov byte [esp + 0x41], 4
mov al, 2
lea edx, [esp + 0x30]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0x556440
mov cl, 3
mov byte [esp + 0x18], al
mov byte [esp + 0x19], cl
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xf8], eax
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0054f518
add esp, 8
movzx eax, byte [esp + 0x18]
mov cl, 1
test eax, eax
je 0x51346a
cmp eax, 1
jne 0x513430
lea eax, [esp + 0x68]
mov dword [esp + 0x80], eax
mov al, 4
jmp 0x51346a
cmp byte [esp + 0x19], 1
mov ecx, dword [esp + 8]
lea edx, [esp + 8]
cmovne ecx, edx
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], ecx
movzx eax, al
mov ecx, 2
cmovne eax, ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x88], ecx
mov cl, 4
mov byte [esp + 0x90], al
mov byte [esp + 0x91], cl
mov ecx, ebx
lea eax, [esp + 0x80]
push eax
call fcn.005394d0
test byte [esp + 0x68], 1
je 0x51349a
push dword [esp + 0x70]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0xf8]
test ecx, ecx
je 0x5134aa
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x24], 1
je 0x5134bd
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ebx, dword [edi - 8]
mov eax, dword [edi - 4]
cmp ebx, eax
jb 0x513150
mov ecx, dword [edi - 0xc]
mov esi, ebx
sub esi, ecx
sar esi, 4
lea edx, [esi + 1]
cmp edx, 0x10000000
jae 0x51371a
sub eax, ecx
mov edi, eax
sar edi, 3
cmp edi, edx
cmovbe edi, edx
cmp eax, 0x7ffffff0
mov eax, 0xfffffff
cmovae edi, eax
test edi, edi
je 0x513529
cmp edi, 0x10000000
jae 0x51371f
mov eax, edi
shl eax, 4
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edx, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
mov ebx, dword [eax - 8]
jmp 0x51352b
xor edx, edx
shl esi, 4
mov dword [edx + esi], 0x55bc43
mov dword [edx + esi + 4], 3
mov eax, dword [esp + 4]
mov dword [edx + esi + 8], eax
mov eax, edx
add edx, esi
mov dword [esp + 4], eax
mov dword [eax + esi + 0xc], 0
cmp ebx, ecx
je 0x51357b
nop dword [eax]
movups xmm0, xmmword [ebx - 0x10]
add ebx, 0xfffffff0
movups xmmword [edx - 0x10], xmm0
add edx, 0xfffffff0
cmp ebx, ecx
jne 0x513560
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
jmp 0x51357f
mov eax, dword [esp + 0x20]
shl edi, 4
mov ebx, dword [esp + 4]
add edi, ebx
add ebx, esi
add ebx, 0x10
mov dword [eax - 0xc], edx
mov dword [eax - 8], ebx
mov dword [eax - 4], edi
test ecx, ecx
mov edi, eax
jne 0x51367d
jmp 0x51316e
mov dword [esp + 4], esi
mov ecx, dword [edi - 0xc]
mov esi, ebx
sub esi, ecx
sar esi, 4
lea edx, [esi + 1]
cmp edx, 0x10000000
jae 0x51371a
sub eax, ecx
mov edi, eax
sar edi, 3
cmp edi, edx
cmovbe edi, edx
cmp eax, 0x7ffffff0
mov eax, 0xfffffff
cmovae edi, eax
test edi, edi
mov dword [esp + 0x10c], edi
je 0x51360c
mov eax, edi
cmp edi, 0x10000000
mov edi, dword [esp + 0x20]
jae 0x51371f
shl eax, 4
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ecx, dword [edi - 0xc]
mov ebx, dword [edi - 8]
jmp 0x513612
xor eax, eax
mov edi, dword [esp + 0x20]
shl esi, 4
mov edx, dword [esp + 0xf4]
mov dword [eax + esi + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + esi], edx
mov edx, dword [esp + 4]
mov dword [eax + esi + 8], edx
lea edx, [eax + esi]
mov dword [eax + esi + 0xc], 0
cmp ebx, ecx
je 0x513659
nop
movups xmm0, xmmword [ebx - 0x10]
add ebx, 0xfffffff0
movups xmmword [edx - 0x10], xmm0
add edx, 0xfffffff0
cmp ebx, ecx
jne 0x513640
mov ebx, eax
mov ecx, dword [edi - 0xc]
jmp 0x51365b
mov ebx, eax
mov eax, dword [esp + 0x10c]
shl eax, 4
add eax, ebx
add ebx, esi
add ebx, 0x10
mov dword [edi - 0xc], edx
mov dword [edi - 8], ebx
mov dword [edi - 4], eax
test ecx, ecx
je 0x51316e
push ecx
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x51316e
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x68], 1
je 0x512ad2
push dword [esp + 0x70]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0xe8]
test ecx, ecx
jne 0x512add
jmp 0x512ae2
push dword [esp + 0x38]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x50], 1
je 0x512af8
push dword [esp + 0x58]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xc0], 1
jne 0x512b02
jmp 0x512b11
xor edi, edi
mov dword [esp + 4], 0
test byte [esp + 0x2c], 1
jne 0x512b25
jmp 0x512b40
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00453680
call fcn.004077b0
lea ecx, [esp + 0x88]
call fcn.00407790