Function at 0x4d6be0
Capabilities:
Terminate thread

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
xor ebp, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, ebp
je 0x4d6bfa
push eax
call edi
mov eax, dword [esi + 0x7c]
cmp eax, ebp
je 0x4d6c04
push eax
call edi
push ebx
cmp dword [esi + 0x84], ebp
je 0x4d6d93
push 0x50f03c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 0x84], 1
je 0x4d6c32
mov eax, dword [esi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test byte [esi + 0x84], 2
je 0x4d6c4a
mov ecx, dword [esi + 0x8c]
push ecx
call fcn.004b3c1f
add esp, 4
test byte [esi + 0x84], 4
je 0x4d6c62
mov edx, dword [esi + 0x90]
push edx
call fcn.004b40cd
add esp, 4
mov ecx, dword [0x50f054]
call fcn.004d6a20
cmp dword [eax], esi
jne 0x4d6c96
mov ecx, dword [0x50f054]
mov eax, dword [ecx + 0x10]
mov edx, eax
sub edx, dword [ecx + 0xc]
test edx, 0xfffffffc
je 0x4d6d44
add eax, 0xfffffffc
mov dword [ecx + 0x10], eax
jmp 0x4d6d44
push str.warning:_removing_Breakpad_handler_out_of_order_n
call fcn.004b6758
add eax, 0x40
push eax
call fcn.004b663c
mov edi, dword [0x50f054]
mov ebx, dword [edi + 0xc]
add esp, 8
cmp ebx, dword [edi + 0x10]
jbe 0x4d6cbf
call fcn.004b3c6c
mov edi, dword [edi]
mov ebp, dword [0x50f054]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0xc], eax
jbe 0x4d6cd8
call fcn.004b3c6c
mov ebp, dword [ebp]
test edi, edi
je 0x4d6ce3
cmp edi, ebp
je 0x4d6ce8
call fcn.004b3c6c
cmp ebx, dword [esp + 0x10]
je 0x4d6d42
test edi, edi
jne 0x4d6d20
call fcn.004b3c6c
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4d6d03
call fcn.004b3c6c
cmp dword [ebx], esi
jne 0x4d6d24
mov ecx, dword [0x50f054]
push ebx
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.004d6b50
mov edi, dword [eax]
mov ebx, dword [eax + 4]
jmp 0x4d6cc1
mov eax, dword [edi]
jmp 0x4d6cf9
test edi, edi
jne 0x4d6d3e
call fcn.004b3c6c
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4d6d39
call fcn.004b3c6c
add ebx, 4
jmp 0x4d6cc1
mov eax, dword [edi]
jmp 0x4d6d2f
xor ebp, ebp
mov edi, dword [0x50f054]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
test ecx, 0xfffffffc
jne 0x4d6d88
mov eax, dword [edi + 0xc]
cmp eax, ebp
je 0x4d6d68
push eax
call fcn.004b3716
add esp, 4
mov edx, dword [edi]
push edx
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
call fcn.004b3716
push edi
call fcn.004b3716
add esp, 8
mov dword [0x50f054], ebp
push 0x50f03c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [esi + 0xc], ebp
jne 0x4d6ddd
mov eax, dword [esi + 0x94]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x94]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
lea edx, [esi + 0x9c]
push edx
mov dword [esi + 0x94], ebp
call ebx
mov eax, dword [esi + 0xb4]
push eax
call edi
mov ecx, dword [esi + 0xb8]
push ecx
call edi
push 0x50f05c
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4d6df3
push 0x50f03c
call ebx
lea edi, [esi + 0xcc]
mov ecx, edi
call fcn.0049ac70
mov edx, dword [edi]
push edx
call fcn.004b3716
mov ebx, 8
add esp, 4
cmp dword [esi + 0x60], ebx
jb 0x4d6e21
mov eax, dword [esi + 0x4c]
push eax
call fcn.004b3716
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], ebp
mov word [esi + 0x4c], cx
cmp dword [esi + 0x44], ebx
jb 0x4d6e43
mov edx, dword [esi + 0x30]
push edx
call fcn.004b3716
add esp, 4
xor eax, eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], ebp
mov word [esi + 0x30], ax
cmp dword [esi + 0x28], ebx
pop ebx
jb 0x4d6e61
mov ecx, dword [esi + 0x14]
push ecx
call fcn.004b3716
add esp, 4
xor edx, edx
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], ebp
mov word [esi + 0x14], dx
mov esi, dword [esi + 0xc]
cmp esi, ebp
je 0x4d6e84
mov ecx, esi
call fcn.004d8360
push esi
call fcn.004b3716
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret