Function at 0x4ca840
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.004cc280
test byte [esp + 0xbc], 1
jne 0x4cabc3
lea ecx, [esp + 0x8c]
push dword [ebp + 0xc]
push ebx
call fcn.004cca50
test byte [esp + 0x94], 1
mov dword [esp + 0x24], edi
jne 0x4cabe0
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 0x4cae33
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 0x4cafef
mov ebx, edx
test bl, 3
jne 0x4cb11f
mov esi, ebx
movzx ebx, word [ebx]
cmp ebx, 1
jne 0x4cb25c
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x78]
push eax
call fcn.00444da0
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 0x4caa0f
test al, 3
mov bh, byte [esp + 0x3c]
mov esi, dword [esp + 0x5c]
jne 0x4cae69
lea ecx, [esp + 4]
push esi
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.004cc780
mov bl, byte [esp + 0x14]
test bl, 1
jne 0x4caa1c
mov eax, dword [esp + 0x60]
lea ecx, [eax + 0x18]
lea eax, [esp + 8]
push eax
call fcn.0054f9c8
movzx eax, byte [esp + 0x14]
mov edi, dword [esp + 0x24]
test al, 1
je 0x4caa3c
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x4caa4f
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4caa4f
mov bh, byte [esp + 0x3c]
mov esi, dword [esp + 0x5c]
jmp 0x4cab90
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 0x4ca9f8
test byte [esp + 8], 1
je 0x4caa4f
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test bl, 1
jne 0x4cafbe
mov eax, dword [esp + 0x88]
cmp word [eax + 6], 2
jb 0x4cab90
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 0x4cae69
lea ecx, [esp + 4]
push esi
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.004cc780
mov bl, byte [esp + 0x14]
test bl, 1
jne 0x4caae0
mov eax, dword [esp + 0x60]
mov esi, dword [eax + 0x28]
cmp esi, dword [eax + 0x2c]
jae 0x4cab20
mov eax, dword [esp + 4]
mov dword [esi], eax
lea ecx, [esi + 4]
test byte [esp + 8], 1
jne 0x4cab32
lea edx, [esp + 8]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
movsd xmm0, qword [edx]
movsd qword [ecx], xmm0
jmp 0x4cab3f
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 0x4cab56
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x4cab69
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4cab69
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 4]
push eax
call fcn.00445c40
mov esi, eax
jmp 0x4cab42
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.00407730
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 0x4caafc
test byte [esp + 8], 1
je 0x4cab69
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test bl, 1
jne 0x4cafba
inc edi
mov eax, dword [esp + 0x88]
movzx eax, word [eax + 6]
cmp edi, eax
jb 0x4caa80
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 0x4ca920
mov byte [edi + 0xc], bh
movsd xmm0, qword [esp + 0x78]
mov eax, dword [esp + 0x80]
jmp 0x4cae3d
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xb4], 0
or byte [edi + 0xc], 1
mov dword [edi], eax
jmp 0x4cb414
lea ecx, [esp + 0xa0]
push ebx
call fcn.004c2130
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.0054f434
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.0054f5a2
mov ecx, esi
push str.cannot_read_content_of
push 0
call fcn.0054f9b6
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 0x556440
call fcn.0054f9a4
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 0x4cacc6
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.0054f518
add esp, 8
movzx eax, byte [esp + 0x40]
test al, 1
je 0x4cacf5
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
jmp 0x4cacfb
shr eax, 1
lea edx, [esp + 0x41]
lea ecx, [esp + 0xa0]
push eax
push edx
call fcn.0054f9aa
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.0054f3f2
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.0054f20c
mov edi, dword [esp + 0x24]
or byte [edi + 0xc], 1
mov dword [edi], esi
test byte [esp + 0x28], 1
jne 0x4cadbc
test byte [esp + 0x40], 1
jne 0x4cadcf
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x4cad91
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0xa0], 1
jne 0x4cade8
test byte [esp + 0x18], 1
jne 0x4cadfe
test byte [esp + 0x78], 1
jne 0x4cae11
test byte [esp + 0x94], 1
jne 0x4cb3ef
jmp 0x4cb40a
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x40], 1
je 0x4cad81
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x9c]
test ecx, ecx
jne 0x4cad8c
jmp 0x4cad91
push dword [esp + 0xa8]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x18], 1
je 0x4cada2
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x78], 1
je 0x4cada9
push dword [esp + 0x80]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x94], 1
jne 0x4cb3ef
jmp 0x4cb40a
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 0x4cb3d4
lea ecx, [esp + 0x18]
mov edi, dword [ebp + 8]
push edi
call fcn.004c2130
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.0054f434
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.0054f5a2
mov ecx, esi
push str.invalid
push 0
call fcn.0054f9b6
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.0054f9a4
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.0054f3f2
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.0054f20c
or bh, 1
mov edi, dword [esp + 0x24]
mov byte [edi + 0xc], bh
mov dword [edi], esi
test byte [esp + 0x28], 1
je 0x4cafa7
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x18], 1
jne 0x4cafcf
test byte [esp + 0x40], 1
jne 0x4cafe6
jmp 0x4cb3d4
mov edi, dword [esp + 0x24]
mov byte [edi + 0xc], bh
mov eax, dword [esp + 0x84]
mov dword [edi], eax
jmp 0x4cb3d4
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x40], 1
je 0x4cb3d4
push dword [esp + 0x48]
jmp 0x4cb3cc
lea edi, [esp + 0x18]
mov ebx, ecx
mov ecx, edi
push ebx
call fcn.004c2130
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.0054f434
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.0054f5a2
mov ecx, esi
push str.invalid
push 0
call fcn.0054f9b6
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.0054f9a4
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.0054f3f2
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.0054f20c
movzx eax, byte [esp + 0x3c]
or al, 1
jmp 0x4cb386
lea ecx, [esp + 0x18]
mov edi, dword [ebp + 8]
push edi
call fcn.004c2130
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.0054f434
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.0054f5a2
mov ecx, esi
push str.invalid
push 0
call fcn.0054f9b6
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.0054f9a4
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.0054f3f2
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.0054f20c
movzx eax, byte [esp + 0x3c]
or al, 1
mov byte [edi + 0xc], al
mov dword [edi], esi
test byte [esp + 0x28], 1
jne 0x4caf9b
jmp 0x4cafa7
lea ecx, [esp + 0x18]
mov edi, dword [ebp + 8]
push edi
call fcn.004c2130
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.0054f434
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.0054f5a2
mov ecx, esi
push str.unable_to_dump
push 0
call fcn.0054f9b6
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.0054f9a4
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.0054f3f2
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.0054f20c
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 0x4cb3a2
test byte [esp + 0x40], 1
jne 0x4cb3b5
test byte [esp + 0x68], 1
jne 0x4cb3c8
jmp 0x4cb3d4
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x40], 1
je 0x4cb399
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x68], 1
je 0x4cb3d4
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.00445db0
test byte [esp + 0x94], 1
je 0x4cb40a
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x8c], 0
test ecx, ecx
je 0x4cb40a
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0xbc], 1
je 0x4cb42f
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0xb4], 0
test ecx, ecx
je 0x4cb42f
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