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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
test eax, eax
je 0x4c7e87
mov edi, edx
mov dword [esp + 4], ecx
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push esi
push dword [edx + 0x3c]
call fcn.004c8290
test byte [esp + 0x20], 1
jne 0x4c7e9c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c802a
mov dword [esp + 0x28], eax
mov ebx, dword [edi + 0x3c]
lea ecx, [esp + 8]
push ebx
call fcn.004c20f0
test byte [esp + 0x10], 1
jne 0x4c8043
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
sub esp, 0x10
movsd xmm0, qword [esp + 0x50]
movsd qword [esp + 8], xmm0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
lea ecx, [esp + 0x3c]
call fcn.004c26e0
test byte [esp + 0x10], 1
je 0x4c7e15
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0
test ecx, ecx
je 0x4c7e15
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x34], 1
jne 0x4c805b
lea ecx, [esp + 0x68]
push 0
mov ebx, dword [ebp + 0xc]
push ebx
push dword [edi + 0x3c]
call fcn.004c8290
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x68]
sar eax, 3
mov edx, dword [edi + 0x22c]
mov ecx, dword [edi + 0x238]
test ecx, ecx
je 0x4c80c2
mov esi, ecx
mov ecx, ebx
shr ecx, 4
shr ebx, 9
xor ebx, ecx
mov dword [esp + 0x24], esi
lea ecx, [esi - 1]
mov dword [esp + 0x5c], ecx
and ebx, ecx
lea ecx, [ebx + ebx*2]
mov esi, dword [edx + ecx*4]
cmp esi, dword [ebp + 0xc]
jne 0x4c8076
lea ecx, [edx + ecx*4]
mov esi, edx
mov edx, dword [esp + 0x24]
jmp 0x4c80ce
and byte [ecx + 0x10], 0xfe
mov dword [ecx], 0
mov word [ecx + 4], 0
jmp 0x4c8274
mov eax, dword [ebx + 4]
mov dword [esp + 0xac], str.unable_to_read_an_entry_with_index
mov dword [esp + 0xb4], eax
mov word [esp + 0xbc], 0x903
lea eax, [esp + 0xac]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], str._from
mov word [esp + 0xd0], 0x302
mov edi, dword [edi + 0x3c]
lea ecx, [esp + 0x40]
push edi
call fcn.004c20f0
mov ebx, esi
sub ebx, dword [esp + 0x40]
sar ebx, 6
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
push dword [esi + 4]
push eax
call fcn.0054a5d0
add esp, 8
mov word [esp + 0x3c], 0x305
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], str._section_with_index
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0x10], ebx
mov word [esp + 0x18], 0x902
lea esi, [esp + 8]
lea ebx, [esp + 0x7c]
mov ecx, ebx
push esi
call fcn.0054a73e
lea eax, [esp + 0xc0]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ebx
mov word [esp + 0x50], 0x402
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 0x551440
mov word [esp + 0x3c], 0x302
xor eax, eax
test byte [esp + 0x20], 1
je 0x4c7f82
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
lea edi, [esp + 0x70]
push eax
push edi
call fcn.0054a6b4
add esp, 8
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0x10], edi
mov word [esp + 0x18], 0x402
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
call fcn.0054a58e
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
mov ecx, edi
call fcn.0054a3a8
mov eax, dword [esp + 4]
or byte [eax + 0x10], 1
mov dword [eax], edi
test byte [esp + 0x70], 1
je 0x4c7ffe
push dword [esp + 0x78]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x4c800b
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x7c], 1
je 0x4c8258
push dword [esp + 0x84]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x4c8258
mov eax, dword [esp + 4]
and byte [eax + 0x10], 0xfe
mov dword [eax], 0
mov word [eax + 4], 0
jmp 0x4c8258
mov eax, dword [esp + 8]
or byte [esp + 0x34], 1
mov dword [esp + 0x2c], eax
test byte [esp + 0x34], 1
je 0x4c7e20
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 4]
or byte [ecx + 0x10], 1
mov dword [ecx], eax
jmp 0x4c8243
mov dword [esp], esi
mov dword [esp + 0x54], 1
mov esi, edx
mov edx, dword [esp + 0x24]
cmp dword [esp], 0xfffff000
mov ecx, edx
mov edx, esi
je 0x4c80c2
add ebx, dword [esp + 0x54]
inc dword [esp + 0x54]
and ebx, dword [esp + 0x5c]
lea esi, [ebx + ebx*2]
mov dword [esp], esi
mov ecx, dword [esp]
lea ecx, [edx + ecx*4]
mov esi, dword [esp]
mov esi, dword [edx + esi*4]
mov dword [esp], esi
cmp esi, dword [ebp + 0xc]
mov esi, edx
mov edx, dword [esp + 0x24]
je 0x4c80ce
jmp 0x4c8087
mov ebx, ecx
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*4]
mov esi, edx
mov edx, ebx
imul eax, eax, 0xaaaaaaab
lea edx, [edx + edx*2]
lea edx, [esi + edx*4]
cmp ecx, edx
je 0x4c80e6
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
jmp 0x4c80ea
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], 0
mov byte [esp + 0x98], 1
mov dword [esp + 0xa0], 0
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
cmp dword [esi + 4], 0xb
sete cl
sub esp, 0x38
movups xmm0, xmmword [esp + 0xc0]
movups xmm1, xmmword [esp + 0xd0]
movups xmmword [esp + 0x18], xmm1
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x78]
mov edx, edi
call fcn.004c83e0
add esp, 0x38
movzx ebx, byte [esp + 0x40]
mov eax, ebx
and al, 1
je 0x4c8189
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x4c818f
shr ebx, 1
lea edx, [esp + 0x41]
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
lea esi, [esp + 0xc]
test edx, edx
je 0x4c81bf
cmp ebx, 0xfffffff8
jae 0x4c827c
cmp ebx, 0xb
jae 0x4c81cf
mov eax, ebx
add al, bl
mov byte [esp + 0xc], al
lea edi, [esp + 0xd]
test ebx, ebx
jne 0x4c81f9
jmp 0x4c8204
xorps xmm0, xmm0
movsd qword [esi], xmm0
mov dword [esi + 8], 0
jmp 0x4c8213
mov edi, ebx
or edi, 7
lea eax, [edi + 1]
push eax
mov esi, edx
call sub.libc.dll_operator_new_unsigned_int_
mov edx, esi
lea esi, [esp + 0x10]
add esp, 4
mov dword [esp + 0x14], eax
add edi, 2
mov dword [esp + 0xc], edi
mov edi, eax
mov dword [esp + 0x10], ebx
push ebx
push edx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov byte [edi + ebx], 0
mov ecx, dword [esp + 8]
movzx eax, byte [esp + 0x40]
and al, 1
mov edx, dword [esp + 4]
and byte [edx + 0x10], 0xfe
mov dword [edx], ecx
movsd xmm0, qword [esi]
movsd qword [edx + 4], xmm0
mov ecx, dword [esi + 8]
mov dword [edx + 0xc], ecx
test al, al
je 0x4c823c
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x34], 1
je 0x4c8258
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
test ecx, ecx
je 0x4c8258
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x20], 1
je 0x4c8274
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x4c8274
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00407760
int3