Function at 0x10046a9
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x100a0e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov esi, 0x100a424
push esi
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x14c], eax
call fcn.0100382b
push esi
lea ecx, [ebp - 0x140]
call fcn.0100382b
push esi
lea ecx, [ebp - 0x144]
call fcn.0100382b
push esi
lea ecx, [ebp - 0x148]
call fcn.0100382b
mov esi, 0x10030ec
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
movsd dword es:[edi], dword [esi]
push ebx
push ebx
movsd dword es:[edi], dword [esi]
push 1
push ebx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x154], ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x1004d3d
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14c]
call fcn.01003db2
test eax, eax
jne 0x10047c2
lea eax, [ebp - 0x158]
push eax
call fcn.01003f80
mov ecx, dword [ebp - 0x148]
add ecx, 0xfffffff0
call fcn.0100363b
mov ecx, dword [ebp - 0x144]
add ecx, 0xfffffff0
call fcn.0100363b
mov ecx, dword [ebp - 0x140]
add ecx, 0xfffffff0
call fcn.0100363b
mov ecx, dword [ebp - 0x158]
add ecx, 0xfffffff0
call fcn.0100363b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010068a9
leave
ret 0x10
mov eax, dword [ebp - 0x140]
cmp dword [eax - 0xc], ebx
je 0x1004849
push ebx
push ebx
push 0x300f000
push eax
push eax
push 1
push 0x1001508
call sub.WDSCORE.dll_WdsInitialize
test eax, eax
jne 0x1004849
push 0x1002120
lea ecx, [ebp - 0x14c]
call fcn.01004028
push eax
call fcn.01003f80
mov ecx, dword [ebp - 0x14c]
add ecx, 0xfffffff0
call fcn.0100363b
mov ecx, dword [ebp - 0x148]
add ecx, 0xfffffff0
call fcn.0100363b
mov ecx, dword [ebp - 0x144]
add ecx, 0xfffffff0
call fcn.0100363b
mov ecx, dword [ebp - 0x140]
add ecx, 0xfffffff0
call fcn.0100363b
mov ecx, dword [ebp - 0x158]
add ecx, 0xfffffff0
call fcn.0100363b
mov eax, ebx
jmp 0x10047b1
mov eax, dword [ebp - 0x148]
mov esi, 0x3800000
cmp dword [eax - 0xc], ebx
je 0x10048b1
push eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x150], eax
cmp eax, ebx
jne 0x10048f1
mov edi, dword [ebp - 0x148]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x1002108
push 0x1001d00
push 0x244
push ebx
push 0x1001294
push 0x80000
push edi
push 0x10020e8
push esi
call fcn.01003695
add esp, 0xc
jmp 0x10048eb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x1002108
push 0x1001d00
push 0x249
push ebx
push 0x1001294
push 0x80000
push 0x10020a0
push 0x4000000
call fcn.01003695
pop ecx
pop ecx
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
cmp dword [ebp - 0x13c], ebx
je 0x1004954
push dword [ebp - 0x13c]
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x154], eax
cmp eax, ebx
jne 0x1004994
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x1002108
push 0x1001d00
push 0x259
push ebx
push 0x1001294
push 0x80000
push dword [ebp - 0x13c]
push 0x1002068
push esi
call fcn.01003695
add esp, 0xc
jmp 0x100498e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x1002108
push 0x1001d00
push 0x25e
push ebx
push 0x1001294
push 0x80000
push 0x1002034
push 0x4000000
call fcn.01003695
pop ecx
pop ecx
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 3
call esi
mov dword [ebp - 0x14c], eax
or eax, 3
push eax
call esi
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, 0x1002024
lea edi, [ebp - 0xd8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc8], 0x1002000
mov dword [ebp - 0xc4], ebx
mov esi, 0x1001ff0
lea edi, [ebp - 0xc0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb0], 0x1001fd8
mov dword [ebp - 0xac], ebx
mov esi, 0x1001fc8
lea edi, [ebp - 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x98], 0x1001fb0
mov dword [ebp - 0x94], ebx
mov esi, 0x1001fa0
lea edi, [ebp - 0x90]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x80], 0x1001f88
mov dword [ebp - 0x7c], ebx
mov esi, 0x1001f78
lea edi, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x68], 0x1001f64
mov dword [ebp - 0x64], ebx
mov esi, 0x1001f54
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x50], 0x1001f3c
mov dword [ebp - 0x4c], ebx
mov esi, 0x1001f2c
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x38], 0x1001f04
mov dword [ebp - 0x34], ebx
call fcn.01005aa1
push 7
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.01004265
test eax, eax
je 0x1004c47
lea ecx, [ebp - 0x138]
call fcn.0100504c
test eax, eax
je 0x1004be2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x30]
call fcn.010058c2
lea ecx, [ebp - 0x30]
call fcn.01004f42
push ebx
push ebx
test eax, eax
jl 0x1004b8c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x140]
call esi
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x1002108
push 0x1001d00
push 0x289
push ebx
push 0x1001294
push 0x80000
push edi
push dword [ebp - 0x144]
mov edi, 0x4000000
push 0x1001ec0
push edi
call fcn.01003695
add esp, 0x10
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
cmp dword [ebp - 0x150], ebx
je 0x1004b33
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 0x154]
lea ecx, [ebp - 0x138]
call fcn.01005162
lea eax, [ebp - 0x138]
push eax
call fcn.01005b07
lea ecx, [ebp - 0x30]
call fcn.01004fd2
push ebx
push ebx
call esi
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x1002108
push 0x1001d00
push 0x295
push ebx
push 0x1001294
push 0x80000
push 0x1001ea4
push edi
call fcn.01003695
pop ecx
pop ecx
jmp 0x1004bd2
mov esi, dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x1002108
push 0x1001d00
push 0x29e
push ebx
push 0x1001294
push 0x80000
push esi
push dword [ebp - 0x144]
push 0x1001e50
push 0x2000859
call fcn.01003695
add esp, 0x10
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
lea ecx, [ebp - 0x30]
call fcn.01004d28
jmp 0x1004c30
mov esi, dword [ebp - 0x140]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x1002108
push 0x1001d00
push 0x2a8
push ebx
push 0x1001294
push 0x80000
push esi
push dword [ebp - 0x144]
push 0x1001e08
push 0x2000858
call fcn.01003695
add esp, 0x10
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
push 7
lea eax, [ebp - 0xd8]
push eax
push dword [ebp - 0x13c]
push ebx
call fcn.01004222
jmp 0x1004c87
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x1002108
push 0x1001d00
push 0x2b7
push ebx
push 0x1001294
push 0x80000
push 0x1001dc0
push 0x2000864
call fcn.01003695
pop ecx
pop ecx
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x150], ebx
je 0x1004c9d
push dword [ebp - 0x150]
call esi
cmp dword [ebp - 0x154], ebx
je 0x1004cad
push dword [ebp - 0x154]
call esi
lea ecx, [ebp - 0x138]
call fcn.01004e93
test eax, eax
je 0x1004cca
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call dword [sym.imp.ole32.dll_CoUninitialize]
call sub.WDSCORE.dll_WdsTerminate
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x138]
call fcn.01005997
xor ebx, ebx
inc ebx
jmp 0x100480a