Function at 0x490c19
Capabilities:
Suspend thread

Disassembly:
push 0x354
mov eax, 0x4cca71
call fcn.00496608
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
inc eax
mov dword [ebp - 0x344], edi
push str.Unspecified_error.___generate_error_report
mov dword [ebp - 0x348], eax
call fcn.0048dd34
lea eax, [ebp - 0x60]
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x358], eax
pop ecx
test edi, edi
jne 0x490c75
push str.Exception_info_is_NULL.
call fcn.0048dd34
xor edx, edx
pop ecx
lea eax, [edx + 1]
jmp 0x49113f
xor esi, esi
mov dword [ebp - 0x334], 2
cmp dword [edi + 8], 0xd
mov dword [ebp - 0x354], esi
mov dword [ebp - 0x350], esi
je 0x490ccf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5b3c18]
cmp eax, ecx
je 0x490ccf
push ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x350], eax
test eax, eax
je 0x490ccf
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
mov ecx, esi
push 1
pop eax
cmovne ecx, eax
mov dword [ebp - 0x354], ecx
mov dword [ebp - 4], esi
cmp dword [edi + 4], esi
jne 0x490cfa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [edi + 0x34], eax
jne 0x490cfa
lea eax, [ebp - 0x35c]
push eax
push dword [edi + 0xc]
call fcn.00491147
lea eax, [ebp - 0x35c]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], 0xe
mov ecx, eax
mov dword [ebp - 0x338], ecx
jne 0x490d4d
cmp dword [edi + 0x34], 0
je 0x490d4d
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x33c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x33c]
cmp ecx, eax
je 0x490d47
mov esi, ecx
xor ecx, ecx
and dword [ebp - 0x348], ecx
mov dword [ebx + 0x138], esi
jmp 0x490d4d
mov ecx, dword [ebp - 0x338]
cmp dword [edi + 0x24], 0
je 0x490d60
mov eax, dword [ebx + 0xe0]
and dword [eax + 0x1c], 0xfffeffff
mov eax, dword [ebx + 0xe0]
xor edx, edx
inc edx
mov dword [eax + 0xd8], edx
mov eax, dword [ebx + 0xe0]
and dword [eax + 0xbc], 0
mov eax, dword [ebx + 0xe0]
mov dword [eax + 0x88], esi
mov eax, dword [ebx + 0xe0]
mov dword [eax + 0x8c], ecx
mov ecx, dword [ebx + 0xe0]
mov eax, dword [edi + 4]
mov dword [ecx + 0xac], eax
mov eax, dword [ebx + 0xe0]
and dword [eax + 0xb0], 0
mov ecx, dword [ebx + 0xe0]
mov eax, dword [edi + 8]
mov dword [ecx + 0x90], eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x490dde
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0xe0]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ecx + 0x94], eax
jmp 0x490e73
cmp eax, 8
jne 0x490df4
mov ecx, dword [ebx + 0xe0]
mov eax, dword [edi + 0x10]
mov dword [ecx + 0xa8], eax
jmp 0x490e73
cmp eax, 6
jne 0x490e64
push ecx
mov ecx, esp
push dword [edi + 0x14]
call fcn.0048de9e
mov ecx, ebx
call fcn.0048fbe5
mov ecx, dword [ebx + 0xe0]
push ecx
mov dword [ecx + 0x98], eax
mov ecx, esp
push dword [edi + 0x18]
call fcn.0048de9e
mov ecx, ebx
call fcn.0048fbe5
mov ecx, dword [ebx + 0xe0]
push ecx
mov dword [ecx + 0x9c], eax
mov ecx, esp
push dword [edi + 0x1c]
call fcn.0048de9e
mov ecx, ebx
call fcn.0048fbe5
mov ecx, dword [ebx + 0xe0]
mov dword [ecx + 0xa0], eax
mov ecx, dword [ebx + 0xe0]
mov eax, dword [edi + 0x20]
mov dword [ecx + 0xa4], eax
jmp 0x490e73
cmp eax, 0x10
jne 0x490e73
mov eax, dword [ebx + 0xe0]
and dword [eax + 0x34], 0
call fcn.0048d268
push eax
lea ecx, [ebp - 0x33c]
call fcn.0048e10e
xor eax, eax
inc eax
mov byte [ebp - 4], al
cmp dword [edi + 8], 4
jne 0x490ea2
push 0x4f4420
lea ecx, [ebp - 0x33c]
call fcn.0048e01b
jmp 0x490f11
mov eax, dword [edi + 4]
test eax, eax
je 0x490ef8
mov eax, dword [eax]
lea ecx, [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x340]
push ecx
push dword [eax + 0xc]
call fcn.004906e9
test eax, eax
je 0x490ef8
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.00493197
push eax
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 2
call fcn.0048ddfe
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x338]
add ecx, 0xfffffff0
call fcn.0048d242
jmp 0x490f11
mov esi, str.unknown
mov ecx, esi
call fcn.0048e4fe
push eax
push esi
lea ecx, [ebp - 0x33c]
call fcn.0048e305
cmp dword [edi + 8], 0xe
mov esi, dword [ebp - 0x33c]
jne 0x490f23
cmp dword [edi + 0x2c], 0
jne 0x490f50
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x340], edi
call fcn.0048e1c4
mov ecx, dword [ebp - 0x344]
add eax, 0x10
mov dword [edi], eax
xor eax, eax
cmp dword [ecx + 8], 0xd
mov ecx, ebx
sete al
push eax
call fcn.00490a18
push ecx
lea eax, [esi - 0x10]
mov edi, esp
mov dword [ebp - 0x340], edi
mov ecx, eax
mov dword [ebp - 0x338], eax
call fcn.0048e1c4
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.0048fbe5
mov ecx, dword [ebx + 0xe0]
mov dword [ecx + 0x84], eax
mov esi, dword [ebx + 0x7c]
test esi, esi
je 0x490f98
push 0
mov ecx, esi
call dword [0x4ce460]
call esi
test eax, eax
je 0x490fac
mov edi, dword [ebp - 0x344]
mov ecx, ebx
push edi
push 0xa
call fcn.004914ea
test eax, eax
jne 0x490fbd
mov ecx, ebx
call fcn.004913bd
mov eax, str.The_operation_was_cancelled_by_client.
jmp 0x49111c
mov eax, dword [ebx + 0xec]
test eax, eax
je 0x491029
lea ecx, [ebp - 0x334]
xor edx, edx
push ecx
inc edx
push eax
mov dword [ebp - 0x334], edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x491029
cmp dword [ebp - 0x334], 0x103
jne 0x491029
push dword [ebx + 0xb4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [ebx + 0xb0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 0xb4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx + 0xb4], 0
mov eax, dword [ebx + 0xec]
mov dword [edi + 0x28], eax
jmp 0x4910da
cmp dword [edi + 8], 4
je 0x491043
cmp word [0x5b5c08], 0
je 0x491043
sub esp, 0x10
mov ecx, ebx
call fcn.0049013a
mov eax, dword [ebx + 0x90]
mov esi, dword [eax]
mov dword [ebp - 0x334], esi
cmp esi, eax
je 0x4910c5
push ecx
mov ecx, dword [esi + 0x14]
mov edi, esp
sub ecx, 0x10
mov dword [ebp - 0x340], esp
mov dword [ebp - 0x34c], edi
call fcn.0048e1c4
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 4
mov edi, esp
mov ecx, dword [esi + 0x10]
sub ecx, 0x10
mov dword [ebp - 0x34c], edi
call fcn.0048e1c4
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
xor eax, eax
inc eax
mov byte [ebp - 4], al
call fcn.0048fd59
push ecx
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x334]
call fcn.00491d97
mov esi, dword [ebp - 0x334]
cmp esi, dword [ebx + 0x90]
jne 0x491055
mov edi, dword [ebp - 0x344]
push ecx
lea eax, [edi + 0x28]
mov ecx, ebx
push eax
push dword [ebp - 0x348]
push dword [ebx + 0x54]
call fcn.0049121a
push edi
push 0x14
mov ecx, ebx
call fcn.004914ea
cmp dword [ebx + 0x130], 0
je 0x4910f4
mov ecx, ebx
call fcn.004913bd
lea ecx, [ebx + 0x50]
call fcn.00493286
test eax, eax
je 0x491110
xor eax, eax
inc eax
mov dword [ebp - 0x334], eax
mov eax, str.Couldnt_generate_crash_GUID.
jmp 0x49111c
and dword [ebp - 0x334], 0
mov eax, str.Success.
push eax
call fcn.0048dd34
pop ecx
mov ecx, dword [ebp - 0x338]
call fcn.0048d242
lea ecx, [ebp - 0x354]
call fcn.0048eee0
mov eax, dword [ebp - 0x334]
call fcn.004965b7
ret 8