Function at 0x4b8050
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
je 0x4b8068
push eax
call esi
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4b8072
push eax
call esi
cmp dword [edi + 0x78], 0
push ebx
je 0x4b81a1
push 0x6a1a30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
test al, 1
je 0x4b809b
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [edi + 0x78]
test al, 2
je 0x4b80b0
push dword [edi + 0x80]
call fcn.005baa88
mov eax, dword [edi + 0x78]
add esp, 4
test al, 4
je 0x4b80c2
push dword [edi + 0x84]
call fcn.005d67c6
add esp, 4
mov ecx, dword [0x6a1a28]
mov eax, dword [ecx + 4]
add eax, 0xfffffffc
cmp dword [eax], edi
jne 0x4b80dd
mov dword [ecx + 4], eax
mov ebx, dword [0x6a1a28]
jmp 0x4b8139
push str.warning:_removing_Breakpad_handler_out_of_order_n
push 2
call fcn.005b2db5
add esp, 4
push eax
call fcn.00455230
mov ebx, dword [0x6a1a28]
add esp, 8
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x4b8139
lea ecx, [esi + 4]
mov dword [ebp - 4], ecx
cmp dword [esi], edi
jne 0x4b812b
mov eax, dword [ebx + 4]
sub eax, ecx
push eax
push ecx
push esi
call fcn.005d67e0
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebx + 4], 0xfffffffc
mov ebx, dword [0x6a1a28]
jmp 0x4b8134
add esi, 4
add ecx, 4
mov dword [ebp - 4], ecx
cmp esi, dword [ebx + 4]
jne 0x4b8108
mov ecx, dword [ebx]
cmp ecx, dword [ebx + 4]
jne 0x4b8196
test ecx, ecx
je 0x4b8183
mov eax, dword [ebx + 8]
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x4b8166
mov edx, dword [ecx - 4]
sub ecx, edx
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4b8329
mov ecx, edx
push ecx
call fcn.0044d750
mov dword [ebx], 0
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push ebx
call fcn.0044d750
add esp, 4
mov dword [0x6a1a28], 0
push 0x6a1a30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jne 0x4b81ec
push 1
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [edi + 0x90]
mov dword [edi + 0x88], 0
push eax
call ebx
push dword [edi + 0xa8]
call esi
push dword [edi + 0xac]
call esi
or eax, 0xffffffff
lock xadd dword [0x6a1a48], eax
jne 0x4b8200
push 0x6a1a30
call ebx
mov ecx, dword [edi + 0xc0]
pop ebx
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x4b8227
mov esi, dword [eax]
push eax
call fcn.0044d750
add esp, 4
mov eax, esi
test esi, esi
jne 0x4b8216
push dword [edi + 0xc0]
call fcn.0044d750
mov eax, dword [edi + 0x54]
add esp, 4
cmp eax, 8
jb 0x4b826a
mov ecx, dword [edi + 0x40]
lea eax, [eax*2 + 2]
cmp eax, 0x1000
jb 0x4b8261
mov edx, dword [ecx - 4]
sub ecx, edx
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4b8329
mov ecx, edx
push ecx
call fcn.0044d750
add esp, 4
xor eax, eax
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 7
mov word [edi + 0x40], ax
mov eax, dword [edi + 0x3c]
cmp eax, 8
jb 0x4b82b3
mov ecx, dword [edi + 0x28]
lea eax, [eax*2 + 2]
cmp eax, 0x1000
jb 0x4b82aa
mov edx, dword [ecx - 4]
sub ecx, edx
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4b8329
mov ecx, edx
push ecx
call fcn.0044d750
add esp, 4
xor eax, eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 7
mov word [edi + 0x28], ax
mov eax, dword [edi + 0x24]
cmp eax, 8
jb 0x4b82f8
mov ecx, dword [edi + 0x10]
lea eax, [eax*2 + 2]
cmp eax, 0x1000
jb 0x4b82ef
mov edx, dword [ecx - 4]
sub ecx, edx
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4b8329
mov ecx, edx
push ecx
call fcn.0044d750
add esp, 4
xor eax, eax
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 7
mov word [edi + 0x10], ax
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4b8323
mov ecx, esi
call fcn.004b9320
push esi
call fcn.0044d750
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.005baa37
int3