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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x84
mov edi, edx
mov esi, ecx
mov ebp, dword [esp + 0x98]
lea ecx, [esp + 8]
push ebp
push edx
call fcn.0048ec40
test byte [esp + 0x10], 1
jne 0x496ced
mov edx, dword [esp + 8]
lea ecx, [esp + 0x54]
push dword [esp + 0xc]
call fcn.00454cc0
add esp, 4
movzx ebx, byte [esp + 0x60]
test bl, 1
jne 0x496d04
and byte [esi + 0xc], 0xfe
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esp], esi
mov dword [esi + 8], 0
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov ebp, esi
sub ebp, edi
sub esi, edi
je 0x496cd6
js 0x496f49
sar ebp, 3
push esi
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ecx, dword [esp]
mov dword [ecx], eax
lea ebp, [eax + ebp*8]
mov dword [ecx + 8], ebp
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
mov dword [eax + 4], ebp
test bl, 1
jne 0x496f17
test edi, edi
je 0x496f22
push edi
jmp 0x496f0d
mov eax, dword [esp + 8]
mov dword [esp + 8], 0
or byte [esi + 0xc], 1
mov dword [esi], eax
jmp 0x496f29
mov ebx, esi
lea ecx, [esp + 0x20]
push edi
call fcn.004849a0
mov eax, ebp
sub eax, dword [esp + 0x20]
sar eax, 3
mov ecx, dword [edi]
movzx ecx, word [ecx + 0x12]
rol cx, 8
imul esi, eax, 0xcccccccd
movzx eax, cx
mov ecx, dword [ebp + 4]
bswap ecx
push ecx
push eax
call fcn.005509d8
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 ebp, [esp + 0x2c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], esi
mov word [esp + 0x74], 0x802
lea esi, [esp + 0x64]
lea edi, [esp + 0x78]
mov ecx, edi
push esi
call fcn.00550b46
mov ecx, edi
push str.unable_to_decode
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp + 0x40], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea ecx, [esp + 0x40]
push 0x558038
call fcn.00550f36
movsd xmm0, qword [eax]
movsd qword [esp + 0x20], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00550abc
add esp, 8
movzx eax, byte [esp + 0x14]
test al, 1
je 0x496e08
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x496e0e
shr eax, 1
lea edx, [esp + 0x15]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00550f3c
movsd xmm0, qword [eax]
movsd qword [esp + 0x2c], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x74], 0x104
mov dword [esp + 0x64], ebp
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
call fcn.00550996
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
mov ecx, edi
call fcn.005507bc
or byte [ebx + 0xc], 1
mov dword [ebx], edi
test byte [esp + 0x2c], 1
jne 0x496eb7
test byte [esp + 0x14], 1
jne 0x496eca
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x496ea0
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x20], 1
jne 0x496ee0
test byte [esp + 0x40], 1
jne 0x496ef3
test byte [esp + 0x78], 1
jne 0x496f06
jmp 0x496f22
push dword [esp + 0x34]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x14], 1
je 0x496e93
push dword [esp + 0x1c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x496e9b
jmp 0x496ea0
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x40], 1
je 0x496eae
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x78], 1
je 0x496f22
push dword [esp + 0x80]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x496f22
test edi, edi
je 0x496f22
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test byte [esp + 0x10], 1
je 0x496f3e
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0
test ecx, ecx
je 0x496f3e
mov eax, dword [ecx]
call dword [eax + 4]
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp]
call fcn.004550d0
int3