Function at 0x100037e7
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x70]
test eax, eax
je 0x10003806
push eax
call esi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x10003810
push eax
call esi
cmp dword [edi + 0x84], 0
je 0x100039c4
push 0x1000935c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [edi + 0x84], 1
je 0x1000383d
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test byte [edi + 0x84], 2
je 0x10003853
push dword [edi + 0x8c]
call dword [sym.imp.MSVCR90.dll__set_invalid_parameter_handler]
pop ecx
test byte [edi + 0x84], 4
je 0x10003869
push dword [edi + 0x90]
call dword [sym.imp.MSVCR90.dll__set_purecall_handler]
pop ecx
call fcn.1000434a
cmp dword [eax], edi
jne 0x10003896
mov eax, dword [0x1000938c]
mov ecx, dword [eax + 0x10]
mov edx, ecx
sub edx, dword [eax + 0xc]
test edx, 0xfffffffc
je 0x1000397b
add ecx, 0xfffffffc
mov dword [eax + 0x10], ecx
jmp 0x1000397b
push str.warning:_removing_Breakpad_handler_out_of_order_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
mov edi, dword [0x1000938c]
mov ebx, dword [edi + 0xc]
pop ecx
pop ecx
lea esi, [esp + 0x10]
call fcn.10004615
mov edi, dword [0x1000938c]
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x18]
call fcn.10004615
mov edi, dword [esp + 0x10]
test edi, edi
je 0x100038df
cmp edi, dword [esp + 0x18]
je 0x100038e5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x1c]
je 0x10003973
lea esi, [esp + 0x10]
call fcn.100043f4
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
jne 0x1000394c
mov eax, dword [0x1000938c]
lea esi, [eax + 0x10]
mov edi, eax
mov eax, dword [esi]
lea ecx, [ebx + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x1000392b
shl eax, 2
push eax
push ecx
push eax
push ebx
call dword [sym.imp.MSVCR90.dll_memmove_s]
add esp, 0x10
add dword [esi], 0xfffffffc
lea esi, [esp + 0x20]
call fcn.10004615
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jmp 0x100038bf
test edi, edi
jne 0x1000396f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x10003963
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add ebx, 4
mov dword [esp + 0x14], ebx
jmp 0x100038bf
mov eax, dword [edi]
jmp 0x10003958
mov eax, dword [0x1000938c]
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
jne 0x100039b9
mov esi, eax
mov eax, dword [eax + 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x1000399b
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esi]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [0x1000938c], ebx
push 0x1000935c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0xc], 0
jne 0x10003a04
push 1
lea esi, [edi + 0x94]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
and dword [esi], 0
lea eax, [edi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0xb4]
call ebx
push dword [edi + 0xb8]
call ebx
push 0x10009394
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10003a1e
push 0x1000935c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea esi, [edi + 0xcc]
call fcn.10002ddc
lea ecx, [edi + 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [edi + 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [edi + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edi, dword [edi + 0xc]
test edi, edi
je 0x10003a52
mov esi, edi
call fcn.1000441e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4