Function at 0x47af69
Capabilities:
Suspend thread

Disassembly:
push 0x354
mov eax, 0x4b2f71
call fcn.004803aa
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.00478084
lea eax, [ebp - 0x60]
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x358], eax
pop ecx
test edi, edi
jne 0x47afc5
push 0x4d86b8
call fcn.00478084
xor edx, edx
pop ecx
lea eax, [edx + 1]
jmp 0x47b48f
xor esi, esi
mov dword [ebp - 0x334], 2
cmp dword [edi + 8], 0xd
mov dword [ebp - 0x354], esi
mov dword [ebp - 0x350], esi
je 0x47b01f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5913b0]
cmp eax, ecx
je 0x47b01f
push ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x350], eax
test eax, eax
je 0x47b01f
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 0x47b04a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [edi + 0x34], eax
jne 0x47b04a
lea eax, [ebp - 0x35c]
push eax
push dword [edi + 0xc]
call fcn.0047b497
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 0x47b09d
cmp dword [edi + 0x34], 0
je 0x47b09d
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 0x47b097
mov esi, ecx
xor ecx, ecx
and dword [ebp - 0x348], ecx
mov dword [ebx + 0x138], esi
jmp 0x47b09d
mov ecx, dword [ebp - 0x338]
cmp dword [edi + 0x24], 0
je 0x47b0b0
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 0x47b12e
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0xe0]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ecx + 0x94], eax
jmp 0x47b1c3
cmp eax, 8
jne 0x47b144
mov ecx, dword [ebx + 0xe0]
mov eax, dword [edi + 0x10]
mov dword [ecx + 0xa8], eax
jmp 0x47b1c3
cmp eax, 6
jne 0x47b1b4
push ecx
mov ecx, esp
push dword [edi + 0x14]
call fcn.004781ee
mov ecx, ebx
call fcn.00479f35
mov ecx, dword [ebx + 0xe0]
push ecx
mov dword [ecx + 0x98], eax
mov ecx, esp
push dword [edi + 0x18]
call fcn.004781ee
mov ecx, ebx
call fcn.00479f35
mov ecx, dword [ebx + 0xe0]
push ecx
mov dword [ecx + 0x9c], eax
mov ecx, esp
push dword [edi + 0x1c]
call fcn.004781ee
mov ecx, ebx
call fcn.00479f35
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 0x47b1c3
cmp eax, 0x10
jne 0x47b1c3
mov eax, dword [ebx + 0xe0]
and dword [eax + 0x34], 0
call fcn.004775c8
push eax
lea ecx, [ebp - 0x33c]
call fcn.0047845e
xor eax, eax
inc eax
mov byte [ebp - 4], al
cmp dword [edi + 8], 4
jne 0x47b1f2
push 0x4d86b4
lea ecx, [ebp - 0x33c]
call fcn.0047836b
jmp 0x47b261
mov eax, dword [edi + 4]
test eax, eax
je 0x47b248
mov eax, dword [eax]
lea ecx, [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x340]
push ecx
push dword [eax + 0xc]
call fcn.0047aa39
test eax, eax
je 0x47b248
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.0047d4e7
push eax
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 2
call fcn.0047814e
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x338]
add ecx, 0xfffffff0
call fcn.004775a2
jmp 0x47b261
mov esi, str.unknown
mov ecx, esi
call fcn.0047884e
push eax
push esi
lea ecx, [ebp - 0x33c]
call fcn.00478655
cmp dword [edi + 8], 0xe
mov esi, dword [ebp - 0x33c]
jne 0x47b273
cmp dword [edi + 0x2c], 0
jne 0x47b2a0
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x340], edi
call fcn.00478514
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.0047ad68
push ecx
lea eax, [esi - 0x10]
mov edi, esp
mov dword [ebp - 0x340], edi
mov ecx, eax
mov dword [ebp - 0x338], eax
call fcn.00478514
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.00479f35
mov ecx, dword [ebx + 0xe0]
mov dword [ecx + 0x84], eax
mov esi, dword [ebx + 0x7c]
test esi, esi
je 0x47b2e8
push 0
mov ecx, esi
call dword [0x4b4460]
call esi
test eax, eax
je 0x47b2fc
mov edi, dword [ebp - 0x344]
mov ecx, ebx
push edi
push 0xa
call fcn.0047b83a
test eax, eax
jne 0x47b30d
mov ecx, ebx
call fcn.0047b70d
mov eax, str.The_operation_was_cancelled_by_client.
jmp 0x47b46c
mov eax, dword [ebx + 0xec]
test eax, eax
je 0x47b379
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 0x47b379
cmp dword [ebp - 0x334], 0x103
jne 0x47b379
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 0x47b42a
cmp dword [edi + 8], 4
je 0x47b393
cmp word [0x592c08], 0
je 0x47b393
sub esp, 0x10
mov ecx, ebx
call fcn.0047a48a
mov eax, dword [ebx + 0x90]
mov esi, dword [eax]
mov dword [ebp - 0x334], esi
cmp esi, eax
je 0x47b415
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.00478514
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.00478514
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
xor eax, eax
inc eax
mov byte [ebp - 4], al
call fcn.0047a0a9
push ecx
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x334]
call fcn.0047c0e7
mov esi, dword [ebp - 0x334]
cmp esi, dword [ebx + 0x90]
jne 0x47b3a5
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.0047b56a
push edi
push 0x14
mov ecx, ebx
call fcn.0047b83a
cmp dword [ebx + 0x130], 0
je 0x47b444
mov ecx, ebx
call fcn.0047b70d
lea ecx, [ebx + 0x50]
call fcn.0047d5d6
test eax, eax
je 0x47b460
xor eax, eax
inc eax
mov dword [ebp - 0x334], eax
mov eax, str.Couldnt_generate_crash_GUID.
jmp 0x47b46c
and dword [ebp - 0x334], 0
mov eax, str.Success.
push eax
call fcn.00478084
pop ecx
mov ecx, dword [ebp - 0x338]
call fcn.004775a2
lea ecx, [ebp - 0x354]
call fcn.00479230
mov eax, dword [ebp - 0x334]
call fcn.00480359
ret 8