Function at 0x4ee810
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 0x4ee82a
push eax
call edi
mov eax, dword [esi + 0x7c]
cmp eax, ebp
je 0x4ee834
push eax
call edi
push ebx
cmp dword [esi + 0x84], ebp
je 0x4ee9c3
push 0x56cf48
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 0x84], 1
je 0x4ee862
mov eax, dword [esi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test byte [esi + 0x84], 2
je 0x4ee87a
mov ecx, dword [esi + 0x8c]
push ecx
call fcn.00501d5d
add esp, 4
test byte [esi + 0x84], 4
je 0x4ee892
mov edx, dword [esi + 0x90]
push edx
call fcn.0050246c
add esp, 4
mov ecx, dword [0x56cf60]
call fcn.004ee650
cmp dword [eax], esi
jne 0x4ee8c6
mov ecx, dword [0x56cf60]
mov eax, dword [ecx + 0x10]
mov edx, eax
sub edx, dword [ecx + 0xc]
test edx, 0xfffffffc
je 0x4ee974
add eax, 0xfffffffc
mov dword [ecx + 0x10], eax
jmp 0x4ee974
push str.warning:_removing_Breakpad_handler_out_of_order_n
call fcn.0050466f
add eax, 0x40
push eax
call fcn.00504553
mov edi, dword [0x56cf60]
mov ebx, dword [edi + 0xc]
add esp, 8
cmp ebx, dword [edi + 0x10]
jbe 0x4ee8ef
call fcn.00501daa
mov edi, dword [edi]
mov ebp, dword [0x56cf60]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0xc], eax
jbe 0x4ee908
call fcn.00501daa
mov ebp, dword [ebp]
test edi, edi
je 0x4ee913
cmp edi, ebp
je 0x4ee918
call fcn.00501daa
cmp ebx, dword [esp + 0x10]
je 0x4ee972
test edi, edi
jne 0x4ee950
call fcn.00501daa
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4ee933
call fcn.00501daa
cmp dword [ebx], esi
jne 0x4ee954
mov ecx, dword [0x56cf60]
push ebx
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.004ee780
mov edi, dword [eax]
mov ebx, dword [eax + 4]
jmp 0x4ee8f1
mov eax, dword [edi]
jmp 0x4ee929
test edi, edi
jne 0x4ee96e
call fcn.00501daa
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4ee969
call fcn.00501daa
add ebx, 4
jmp 0x4ee8f1
mov eax, dword [edi]
jmp 0x4ee95f
xor ebp, ebp
mov edi, dword [0x56cf60]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
test ecx, 0xfffffffc
jne 0x4ee9b8
mov eax, dword [edi + 0xc]
cmp eax, ebp
je 0x4ee998
push eax
call fcn.00501b8f
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.00501b8f
push edi
call fcn.00501b8f
add esp, 8
mov dword [0x56cf60], ebp
push 0x56cf48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [esi + 0xc], ebp
jne 0x4eea0d
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 0x56cf68
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4eea23
push 0x56cf48
call ebx
lea edi, [esi + 0xcc]
mov ecx, edi
call fcn.004e5210
mov edx, dword [edi]
push edx
call fcn.00501b8f
mov ebx, 8
add esp, 4
cmp dword [esi + 0x60], ebx
jb 0x4eea51
mov eax, dword [esi + 0x4c]
push eax
call fcn.00501b8f
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 0x4eea73
mov edx, dword [esi + 0x30]
push edx
call fcn.00501b8f
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 0x4eea91
mov ecx, dword [esi + 0x14]
push ecx
call fcn.00501b8f
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 0x4eeab4
mov ecx, esi
call fcn.004eff40
push esi
call fcn.00501b8f
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret