Function at 0x4ca800
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [esp + 0xb4]
mov ecx, esi
push dword [ebp + 0xc]
push ebx
call fcn.004cc240
test byte [esp + 0xbc], 1
jne 0x4cab83
lea ecx, [esp + 0x8c]
push dword [ebp + 0xc]
push ebx
call fcn.004cca10
test byte [esp + 0x94], 1
mov dword [esp + 0x24], edi
jne 0x4caba0
mov edx, edi
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x90]
mov edi, ecx
add eax, ecx
mov dword [esp + 0x98], eax
lea eax, [esp + 0x98]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ebx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xa8], ecx
lea eax, [esp + 0x74]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
cmp dword [ecx + 0x2c], 0
je 0x4cadf3
mov ecx, ebx
mov eax, dword [edx]
mov dword [esp + 0x84], eax
mov bh, byte [edx + 0xc]
mov esi, 1
mov edx, edi
mov byte [esp + 0x3c], bh
lea eax, [edx + 0x14]
cmp eax, dword [esp + 0x98]
mov dword [esp + 0x5c], esi
ja 0x4cafaf
mov ebx, edx
test bl, 3
jne 0x4cb0df
mov esi, ebx
movzx ebx, word [ebx]
cmp ebx, 1
jne 0x4cb21c
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x78]
push eax
call fcn.00444d60
mov ecx, esi
sub ecx, dword [esp + 0x74]
mov dword [eax], ecx
movzx ecx, word [esi]
mov dword [eax + 4], ecx
movzx ecx, word [esi + 2]
mov dword [eax + 8], ecx
movzx ecx, word [esi + 4]
mov dword [eax + 0xc], ecx
movzx ecx, word [esi + 6]
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x60], eax
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0xc]
add eax, esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x88], esi
cmp word [esi + 6], 0
je 0x4ca9cf
test al, 3
mov bh, byte [esp + 0x3c]
mov esi, dword [esp + 0x5c]
jne 0x4cae29
lea ecx, [esp + 4]
push esi
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.004cc740
mov bl, byte [esp + 0x14]
test bl, 1
jne 0x4ca9dc
mov eax, dword [esp + 0x60]
lea ecx, [eax + 0x18]
lea eax, [esp + 8]
push eax
call fcn.0054ab64
movzx eax, byte [esp + 0x14]
mov edi, dword [esp + 0x24]
test al, 1
je 0x4ca9fc
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x4caa0f
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4caa0f
mov bh, byte [esp + 0x3c]
mov esi, dword [esp + 0x5c]
jmp 0x4cab50
mov eax, dword [esp + 4]
mov dword [esp + 0x84], eax
mov dword [esp + 4], 0
or bh, 1
mov eax, ebx
mov edi, dword [esp + 0x24]
test al, 1
jne 0x4ca9b8
test byte [esp + 8], 1
je 0x4caa0f
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test bl, 1
jne 0x4caf7e
mov eax, dword [esp + 0x88]
cmp word [eax + 6], 2
jb 0x4cab50
mov eax, dword [esp + 0x60]
add eax, 0x24
mov dword [esp + 0x3c], eax
mov edi, 1
nop word [eax + eax]
test byte [esp + 0x64], 3
jne 0x4cae29
lea ecx, [esp + 4]
push esi
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.004cc740
mov bl, byte [esp + 0x14]
test bl, 1
jne 0x4caaa0
mov eax, dword [esp + 0x60]
mov esi, dword [eax + 0x28]
cmp esi, dword [eax + 0x2c]
jae 0x4caae0
mov eax, dword [esp + 4]
mov dword [esi], eax
lea ecx, [esi + 4]
test byte [esp + 8], 1
jne 0x4caaf2
lea edx, [esp + 8]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
movsd xmm0, qword [edx]
movsd qword [ecx], xmm0
jmp 0x4caaff
mov eax, dword [esp + 4]
mov dword [esp + 0x84], eax
mov dword [esp + 4], 0
or bh, 1
mov eax, ebx
test al, 1
je 0x4cab16
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x4cab29
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4cab29
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 4]
push eax
call fcn.00445c00
mov esi, eax
jmp 0x4cab02
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.00407700
add esi, 0x10
mov eax, dword [esp + 0x60]
mov dword [eax + 0x28], esi
movzx eax, byte [esp + 0x14]
mov esi, dword [esp + 0x5c]
test al, 1
jne 0x4caabc
test byte [esp + 8], 1
je 0x4cab29
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test bl, 1
jne 0x4caf7a
inc edi
mov eax, dword [esp + 0x88]
movzx eax, word [eax + 6]
cmp edi, eax
jb 0x4caa40
nop word cs:[eax + eax]
mov edx, dword [esp + 0x88]
add edx, dword [edx + 0x10]
inc esi
mov eax, dword [ebp + 0xc]
cmp esi, dword [eax + 0x2c]
mov edi, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
jbe 0x4ca8e0
mov byte [edi + 0xc], bh
movsd xmm0, qword [esp + 0x78]
mov eax, dword [esp + 0x80]
jmp 0x4cadfd
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xb4], 0
or byte [edi + 0xc], 1
mov dword [edi], eax
jmp 0x4cb3d4
lea ecx, [esp + 0xa0]
push ebx
call fcn.004c20f0
mov ecx, dword [ebp + 0xc]
mov esi, ecx
sub esi, dword [esp + 0xa0]
sar esi, 6
mov eax, dword [ebx]
movzx eax, word [eax + 0x12]
push dword [ecx + 4]
push eax
call fcn.0054a5d0
add esp, 8
mov word [esp + 0x38], 0x305
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], str._section_with_index
lea ebx, [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], esi
mov word [esp + 0x14], 0x902
lea edi, [esp + 4]
lea esi, [esp + 0x78]
mov ecx, esi
push edi
call fcn.0054a73e
mov ecx, esi
push str.cannot_read_content_of
push 0
call fcn.0054ab52
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
lea ecx, [esp + 0x18]
push 0x551440
call fcn.0054ab40
mov ecx, dword [eax + 8]
mov dword [esp + 0xa8], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0xa0], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 0x94], 1
je 0x4cac86
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.0054a6b4
add esp, 8
movzx eax, byte [esp + 0x40]
test al, 1
je 0x4cacb5
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
jmp 0x4cacbb
shr eax, 1
lea edx, [esp + 0x41]
lea ecx, [esp + 0xa0]
push eax
push edx
call fcn.0054ab46
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov word [esp + 0x14], 0x104
mov dword [esp + 4], ebx
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
call fcn.0054a58e
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x74]
movsd qword [esp + 4], xmm0
mov dword [esp], edi
mov ecx, esi
call fcn.0054a3a8
mov edi, dword [esp + 0x24]
or byte [edi + 0xc], 1
mov dword [edi], esi
test byte [esp + 0x28], 1
jne 0x4cad7c
test byte [esp + 0x40], 1
jne 0x4cad8f
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x4cad51
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0xa0], 1
jne 0x4cada8
test byte [esp + 0x18], 1
jne 0x4cadbe
test byte [esp + 0x78], 1
jne 0x4cadd1
test byte [esp + 0x94], 1
jne 0x4cb3af
jmp 0x4cb3ca
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x40], 1
je 0x4cad41
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x9c]
test ecx, ecx
jne 0x4cad4c
jmp 0x4cad51
push dword [esp + 0xa8]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x18], 1
je 0x4cad62
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x78], 1
je 0x4cad69
push dword [esp + 0x80]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x94], 1
jne 0x4cb3af
jmp 0x4cb3ca
mov edi, edx
mov bh, byte [edx + 0xc]
xorps xmm0, xmm0
xor eax, eax
and bh, 0xfe
mov byte [edi + 0xc], bh
movlps qword [edi], xmm0
mov dword [edi + 8], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
jmp 0x4cb394
lea ecx, [esp + 0x18]
mov edi, dword [ebp + 8]
push edi
call fcn.004c20f0
mov ecx, dword [ebp + 0xc]
mov esi, ecx
sub esi, dword [esp + 0x18]
sar esi, 6
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
push dword [ecx + 4]
push eax
call fcn.0054a5d0
add esp, 8
mov word [esp + 0x38], 0x305
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], str._section_with_index
lea edi, [esp + 0x28]
mov dword [esp + 4], edi
mov dword [esp + 0xc], esi
mov word [esp + 0x14], 0x902
lea esi, [esp + 0x40]
mov ecx, esi
lea eax, [esp + 4]
push eax
call fcn.0054a73e
mov ecx, esi
push str.invalid
push 0
call fcn.0054ab52
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
lea ecx, [esp + 0x18]
push str.:_found_a_misaligned_auxiliary_entry_at_offset_0x
call fcn.0054ab40
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x74]
mov dword [esp + 0x50], eax
sar eax, 0x1f
mov dword [esp + 0x54], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x50]
mov dword [esp + 0xc], eax
mov word [esp + 0x14], 0xf04
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
call fcn.0054a58e
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x74]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x10]
mov dword [esp], eax
mov ecx, esi
call fcn.0054a3a8
or bh, 1
mov edi, dword [esp + 0x24]
mov byte [edi + 0xc], bh
mov dword [edi], esi
test byte [esp + 0x28], 1
je 0x4caf67
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x18], 1
jne 0x4caf8f
test byte [esp + 0x40], 1
jne 0x4cafa6
jmp 0x4cb394
mov edi, dword [esp + 0x24]
mov byte [edi + 0xc], bh
mov eax, dword [esp + 0x84]
mov dword [edi], eax
jmp 0x4cb394
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x40], 1
je 0x4cb394
push dword [esp + 0x48]
jmp 0x4cb38c
lea edi, [esp + 0x18]
mov ebx, ecx
mov ecx, edi
push ebx
call fcn.004c20f0
mov ecx, dword [ebp + 0xc]
mov esi, ecx
sub esi, dword [esp + 0x18]
sar esi, 6
mov eax, dword [ebx]
movzx eax, word [eax + 0x12]
push dword [ecx + 4]
push eax
call fcn.0054a5d0
add esp, 8
mov word [esp + 0x38], 0x305
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], str._section_with_index
lea ebx, [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], esi
mov word [esp + 0x14], 0x902
lea esi, [esp + 0x68]
mov ecx, esi
lea eax, [esp + 4]
push eax
call fcn.0054a73e
mov ecx, esi
push str.invalid
push 0
call fcn.0054ab52
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x40], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x40]
push str.:_version_definition
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 dword [esp + 0x28], edi
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov word [esp + 0x38], 0x904
mov dword [esp + 4], ebx
mov dword [esp + 0xc], str._goes_past_the_end_of_the_section
mov word [esp + 0x14], 0x302
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
call fcn.0054a58e
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x5c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x10]
mov dword [esp], eax
mov ecx, esi
call fcn.0054a3a8
movzx eax, byte [esp + 0x3c]
or al, 1
jmp 0x4cb346
lea ecx, [esp + 0x18]
mov edi, dword [ebp + 8]
push edi
call fcn.004c20f0
mov ecx, dword [ebp + 0xc]
mov esi, ecx
sub esi, dword [esp + 0x18]
sar esi, 6
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
push dword [ecx + 4]
push eax
call fcn.0054a5d0
add esp, 8
mov word [esp + 0x38], 0x305
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], str._section_with_index
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp + 0xc], esi
mov word [esp + 0x14], 0x902
lea esi, [esp + 0x40]
mov ecx, esi
mov edi, ebx
lea ebx, [esp + 4]
push ebx
call fcn.0054a73e
mov ecx, esi
push str.invalid
push 0
call fcn.0054ab52
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
lea ecx, [esp + 0x18]
push str.:_found_a_misaligned_version_definition_entry_at_offset_0x
call fcn.0054ab40
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
sub edi, dword [esp + 0x74]
mov dword [esp + 0x50], edi
sar edi, 0x1f
mov dword [esp + 0x54], edi
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x50]
mov dword [esp + 0xc], eax
mov word [esp + 0x14], 0xf04
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
call fcn.0054a58e
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x74]
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
mov ecx, esi
call fcn.0054a3a8
movzx eax, byte [esp + 0x3c]
or al, 1
mov byte [edi + 0xc], al
mov dword [edi], esi
test byte [esp + 0x28], 1
jne 0x4caf5b
jmp 0x4caf67
lea ecx, [esp + 0x18]
mov edi, dword [ebp + 8]
push edi
call fcn.004c20f0
mov ecx, dword [ebp + 0xc]
mov esi, ecx
sub esi, dword [esp + 0x18]
sar esi, 6
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
push dword [ecx + 4]
push eax
call fcn.0054a5d0
add esp, 8
mov word [esp + 0x38], 0x305
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], str._section_with_index
lea edi, [esp + 0x28]
mov dword [esp + 4], edi
mov dword [esp + 0xc], esi
mov word [esp + 0x14], 0x902
lea esi, [esp + 0x68]
mov ecx, esi
lea eax, [esp + 4]
push eax
call fcn.0054a73e
mov ecx, esi
push str.unable_to_dump
push 0
call fcn.0054ab52
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x40], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x40]
push str.:_version
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
lea eax, [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebx
mov word [esp + 0x38], 0x904
mov dword [esp + 4], edi
mov dword [esp + 0xc], str._is_not_yet_supported
mov word [esp + 0x14], 0x302
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
call fcn.0054a58e
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x5c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x10]
mov dword [esp], eax
mov ecx, esi
call fcn.0054a3a8
movzx eax, byte [esp + 0x3c]
or al, 1
mov edi, dword [esp + 0x24]
mov byte [edi + 0xc], al
mov dword [edi], esi
test byte [esp + 0x18], 1
jne 0x4cb362
test byte [esp + 0x40], 1
jne 0x4cb375
test byte [esp + 0x68], 1
jne 0x4cb388
jmp 0x4cb394
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x40], 1
je 0x4cb359
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x68], 1
je 0x4cb394
push dword [esp + 0x70]
call sub.libc.dll_operator_delete_void_
add esp, 4
lea eax, [esp + 0x78]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
call fcn.00445d70
test byte [esp + 0x94], 1
je 0x4cb3ca
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x8c], 0
test ecx, ecx
je 0x4cb3ca
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0xbc], 1
je 0x4cb3ef
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0xb4], 0
test ecx, ecx
je 0x4cb3ef
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8