Function at 0x4bc9c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5b0c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x58bd90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x4c]
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
push edi
push esi
call fcn.00475700
mov ebx, eax
test ebx, ebx
jne 0x4bcaa5
cmp byte [esi + 0xa0], al
je 0x4bca45
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test edi, edi
jne 0x4bca7e
push 0x54b238
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x14]
push ecx
push edi
mov dword [ebp - 0x14], 0
call edx
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jns 0x4bcacc
push str.pSample__GetPointer___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0x14], 0
jne 0x4bcb07
push str.invalid_sample
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [edi]
mov eax, dword [edx + 0x2c]
push edi
call eax
sub eax, 4
or ebx, 0xffffffff
cmp byte [esi + 0x54], 0
je 0x4bccef
xor ecx, ecx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
test eax, eax
jle 0x4bcfe9
mov edi, dword [ebp - 0x14]
mov edx, ebx
cmp byte [ecx + edi], 0
jne 0x4bcb9a
cmp byte [ecx + edi + 1], 0
jne 0x4bcb9a
cmp byte [ecx + edi + 2], 1
jne 0x4bcb9a
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bcb5d
cmp dword [ebp + 8], 0xffffffff
jne 0x4bcb5d
mov dword [ebp + 8], edx
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4bcb6c
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4bcb6c
mov dword [ebp - 0x20], edx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4bcb84
cmp byte [ecx + edi + 3], 0xb3
jne 0x4bcb84
mov dword [ebp + 0xc], ecx
add ecx, 0xa
add edx, 0xa
jmp 0x4bcb9a
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4bcb9a
cmp byte [ecx + edi + 3], 0xb5
jne 0x4bcb9a
mov dword [ebp - 0x1c], ecx
add ecx, 8
add edx, 8
cmp dword [ebp + 8], 0xffffffff
je 0x4bcba6
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4bcbac
inc ecx
inc edx
cmp ecx, eax
jl 0x4bcb3a
or ebx, 0xffffffff
cmp dword [ebp + 0xc], ebx
je 0x4bcfe9
cmp dword [ebp + 8], ebx
je 0x4bcfe9
cmp dword [ebp - 0x1c], ebx
je 0x4bcfe2
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x4bcfe2
mov edx, dword [0x554a78]
mov dword [esi + 0x58], edx
mov eax, dword [0x554a7c]
mov dword [esi + 0x5c], eax
mov edx, dword [0x554a80]
mov dword [esi + 0x60], edx
mov eax, dword [0x554a84]
mov dword [esi + 0x64], eax
mov edx, dword [0x554f88]
mov dword [esi + 0x68], edx
mov eax, dword [0x554f8c]
mov dword [esi + 0x6c], eax
mov edx, dword [0x554f90]
mov dword [esi + 0x70], edx
mov eax, dword [0x554f94]
mov dword [esi + 0x74], eax
mov edx, dword [0x554f98]
mov dword [esi + 0x84], edx
mov eax, dword [0x554f9c]
mov dword [esi + 0x88], eax
mov edx, dword [0x554fa0]
mov ebx, ecx
sub ebx, dword [ebp - 0x1c]
mov dword [esi + 0x8c], edx
mov eax, dword [0x554fa4]
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, dword [ebp + 0xc]
mov dword [esi + 0x90], eax
xor eax, eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x80], eax
lea edi, [ecx + edx + 2]
mov eax, edi
and eax, 0x80000003
mov dword [esi + 0x7c], 1
jns 0x4bcc78
dec eax
or eax, 0xfffffffc
inc eax
je 0x4bcc83
mov ecx, 4
sub ecx, eax
add edi, ecx
lea eax, [edi + 0x88]
push eax
mov dword [esi + 0x98], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edx, dword [esi + 0x98]
push edx
push 0
push eax
mov dword [esi + 0x9c], eax
call fcn.004576e0
mov eax, dword [esi + 0x9c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x74], edi
lea edi, [eax + 0x84]
mov eax, dword [ebp + 0xc]
sub ecx, eax
add eax, dword [ebp - 0x14]
inc ecx
push ecx
push eax
push edi
call fcn.0045b4a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
inc ebx
push ebx
lea edi, [edi + eax + 1]
push ecx
push edi
call fcn.0045b4a0
add esp, 0x24
jmp 0x4bcfdf
xor edi, edi
test eax, eax
jle 0x4bcfe9
mov ecx, dword [ebp - 0x14]
lea esp, [esp]
cmp byte [edi + ecx], 0xff
jne 0x4bcd12
mov dl, byte [edi + ecx + 1]
and dl, 0xe0
cmp dl, 0xe0
je 0x4bcd1c
inc edi
cmp edi, eax
jl 0x4bcd00
jmp 0x4bcfe9
cmp edi, ebx
je 0x4bcfe9
mov eax, dword [0x554a88]
mov dword [esi + 0x58], eax
mov edx, dword [0x554a8c]
mov dword [esi + 0x5c], edx
mov eax, dword [0x554a90]
mov dword [esi + 0x60], eax
mov edx, dword [0x554a94]
mov dword [esi + 0x64], edx
mov al, byte [edi + ecx + 1]
mov cl, al
mov bl, al
shr cl, 3
shr bl, 1
and cl, 3
and al, 1
and bl, 3
mov byte [ebp + 0xb], cl
mov byte [ebp - 0xd], al
cmp cl, 2
je 0x4bcda9
test cl, cl
je 0x4bcda9
cmp cl, 3
je 0x4bcda9
mov ecx, dword [0x54cfd4]
mov dword [esi + 0x68], ecx
mov edx, dword [0x54cfd8]
mov dword [esi + 0x6c], edx
mov eax, dword [0x54cfdc]
mov dword [esi + 0x70], eax
mov ecx, dword [0x54cfe0]
mov dword [esi + 0x74], ecx
mov byte [esi + 0xa0], 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
push edx
jmp 0x4bd001
mov eax, dword [0x554d68]
mov dword [esi + 0x68], eax
mov ecx, dword [0x554d6c]
mov dword [esi + 0x6c], ecx
mov edx, dword [0x554d70]
mov dword [esi + 0x70], edx
mov eax, dword [0x554d74]
mov dword [esi + 0x74], eax
mov ecx, dword [0x554f38]
mov dword [esi + 0x84], ecx
mov edx, dword [0x554f3c]
mov dword [esi + 0x88], edx
mov eax, dword [0x554f40]
mov dword [esi + 0x8c], eax
mov ecx, dword [0x554f44]
push 0x28
mov dword [esi + 0x90], ecx
mov dword [esi + 0x78], 1
mov dword [esi + 0x7c], 0
mov dword [esi + 0x98], 0x28
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edx, dword [esi + 0x98]
push edx
push 0
push eax
mov dword [esi + 0x9c], eax
call fcn.004576e0
mov eax, dword [esi + 0x9c]
mov ecx, 0x50
mov word [eax], cx
movzx ecx, bl
add esp, 0xc
dec ecx
mov edx, 0x16
mov word [eax + 0x10], dx
je 0x4bce65
dec ecx
je 0x4bce5a
dec ecx
jne 0x4bce6e
lea ecx, [edx - 0x15]
jmp 0x4bce6a
mov edx, 2
mov word [eax + 0x12], dx
jmp 0x4bce6e
mov ecx, 4
mov word [eax + 0x12], cx
mov edx, dword [ebp - 0x14]
mov cl, byte [edi + edx + 2]
mov dl, cl
mov bl, cl
shr dl, 2
and cl, 1
shr bl, 4
and dl, 3
cmp byte [ebp + 0xb], 3
mov byte [ebp + 0xf], cl
movzx ecx, word [eax + 0x12]
mov dword [ebp - 0x20], 0
jne 0x4bceba
cmp ecx, 1
jne 0x4bcea2
xor ecx, ecx
jmp 0x4bcedf
cmp ecx, 2
jne 0x4bceae
mov ecx, 1
jmp 0x4bcedf
cmp ecx, 4
jne 0x4bcedc
mov ecx, 2
jmp 0x4bcedf
cmp ecx, 1
jne 0x4bcec6
mov ecx, 3
jmp 0x4bcedf
cmp ecx, 2
jne 0x4bced2
mov ecx, 4
jmp 0x4bcedf
cmp ecx, 4
mov ecx, 5
je 0x4bcedf
mov ecx, dword [ebp - 0x20]
movzx ebx, bl
lea ebx, [ebx + ebx*2]
lea ecx, [ecx + ebx*2]
movzx ecx, word [ecx*2 + 0x54b178]
imul ecx, ecx, 0x3e8
mov dword [eax + 0x14], ecx
mov cl, byte [ebp + 0xb]
xor ebx, ebx
test cl, cl
jne 0x4bcf09
mov ebx, 2
jmp 0x4bcf13
cmp cl, 2
jne 0x4bcf13
mov ebx, 1
movzx ecx, dl
lea edx, [ebx + ecx*2]
add edx, ecx
mov ecx, dword [edx*4 + 0x54b124]
mov dword [eax + 4], ecx
mov edx, 1
mov word [eax + 0xc], dx
mov ecx, dword [ebp - 0x14]
mov dl, byte [edi + ecx + 3]
shr dl, 6
xor ecx, ecx
cmp dl, 3
setne cl
inc ecx
mov word [eax + 2], cx
movzx ecx, dl
cmp ecx, 3
ja case.default.0x4bcf4d
jmp dword [ecx*4 + 0x4bd020]
mov ecx, 1
jmp 0x4bcf6e
mov ecx, 2
jmp 0x4bcf6e
mov ecx, 4
jmp 0x4bcf6e
mov ecx, 8
mov word [eax + 0x18], cx
cmp dl, 1
jne 0x4bcf8b
mov edx, dword [ebp - 0x14]
mov cl, byte [edi + edx + 3]
shr cl, 4
and cl, 3
movzx edx, cl
mov word [eax + 0x1a], dx
mov ecx, dword [ebp - 0x14]
mov dl, byte [edi + ecx + 3]
mov bl, dl
mov cl, dl
and dl, 3
shr bl, 3
shr cl, 2
movzx edx, dl
and bl, 1
and cl, 1
cmp byte [ebp + 0xf], 0
mov word [eax + 0x1c], dx
je 0x4bcfb7
or word [eax + 0x1e], 1
test bl, bl
je 0x4bcfc0
or word [eax + 0x1e], 2
test cl, cl
je 0x4bcfc9
or word [eax + 0x1e], 4
cmp byte [ebp - 0xd], 0
jne 0x4bcfd4
or word [eax + 0x1e], 8
cmp byte [ebp + 0xb], 3
jne 0x4bcfdf
or word [eax + 0x1e], 0x10
or ebx, 0xffffffff
mov byte [esi + 0xa0], 1
cmp byte [esi + 0xa0], 0
je 0x4bcffa
mov edx, dword [esi + 0x48]
call fcn.004bc830
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8