Function at 0x4a0850
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov ebx, dword [ebp]
mov edx, dword [ebx + 0x14]
test edx, edx
jne 0x4a086b
mov dword [esp + 0x2c], edx
jmp 0x4a0881
lea eax, [edx + 0x324]
test edx, edx
mov ecx, 4
cmovne ecx, eax
mov eax, dword [ecx]
mov dword [esp + 0x2c], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4a0bbb
lea edx, [ebp + 4]
call fcn.00413910
mov edi, dword [ebx]
or edx, 0xffffffff
mov ecx, edi
call fcn.004108f0
mov esi, eax
mov ecx, edi
push 0
push bind
mov edx, esi
call fcn.00423d70
mov edx, esi
mov ecx, edi
call fcn.00411220
push ebp
call fcn.0058bf82
mov edi, dword [ebx]
add esp, 0xc
or esi, 0xffffffff
test edi, edi
je case.0x4a091f.2
push 0x61a6c8
or edx, esi
mov ecx, edi
call fcn.0040fec0
add esp, 4
test eax, eax
je case.0x4a091f.2
push 0x61a6c8
or edx, esi
mov ecx, edi
call fcn.0040f5e0
add esp, 4
or edx, esi
mov ecx, edi
call fcn.004123e0
mov ecx, edi
mov esi, eax
call fcn.00414cb0
cmp esi, 0x80
ja case.0x4a091f.2
movzx ecx, byte [esi + 0x4a0c1c]
jmp dword [ecx*4 + 0x4a0c04]
movups xmm0, xmmword [0x61a6d0]
mov al, byte [0x61a6e0]
push 0x15
movups xmmword [esp + 0x14], xmm0
mov byte [esp + 0x24], al
call fcn.0058d200
mov esi, eax
add esp, 4
test esi, esi
je 0x4a0bc3
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 4]
xorps xmm0, xmm0
mov edx, 0x11
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov byte [esi + 0x14], 0
mov dword [esi], eax
lea eax, [esp + 0x10]
push 0x11
push eax
call fcn.00401000
mov ecx, dword [ebx + 0x14]
add esp, 8
call fcn.004b48c0
push esi
test eax, eax
jne 0x4a09aa
mov ecx, dword [ebx + 0x14]
mov edx, fcn.004a0ed0
push 1
call fcn.004ae9f0
mov ecx, dword [ebx]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
jmp fcn.00414cb0
push dword [ebx + 0x14]
call fcn.004a0ed0
mov ecx, dword [ebx]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
jmp fcn.00414cb0
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [edx + 4]
call fcn.00414800
mov ecx, dword [ebx]
or edx, 0xffffffff
push 0x61a6e4
call fcn.0040f5e0
mov ecx, dword [ebx]
add esp, 4
mov edx, 0xfffffffe
call fcn.00410cf0
mov ecx, dword [ebx]
mov edx, 0x61a6ec
call fcn.00413910
mov ecx, dword [ebx]
mov edx, 1
push 0
call fcn.0040e020
add esp, 4
test eax, eax
je 0x4a0a1e
push str.Error_Dispatching_ready_event_to_Master_Script_Container
push dword [ebx]
call fcn.00470ba0
add esp, 8
mov ecx, dword [ebx]
call fcn.00414cb0
mov ecx, dword [ebx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
jmp fcn.00414cb0
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [edx + 4]
call fcn.00414800
mov ecx, dword [ebx]
or edx, 0xffffffff
push 0x61a730
call fcn.0040f5e0
mov ecx, dword [ebx]
add esp, 4
mov edx, 0xfffffffe
call fcn.00410cf0
mov ecx, dword [ebx]
mov edx, 0x61a738
call fcn.00413910
mov ecx, dword [ebx]
mov edx, 0xfffffffc
push 0x61a740
call fcn.0040f5e0
mov ecx, dword [ebx]
add esp, 4
mov edx, 2
push 0
call fcn.0040e020
add esp, 4
test eax, eax
je 0x4a0a1e
push str.Error_Emitting_ScriptContainer_Error_Message:
jmp 0x4a0a14
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [edx + 4]
call fcn.00414800
mov ecx, dword [ebx]
or edx, 0xffffffff
push 0x61a778
call fcn.0040f5e0
mov ecx, dword [ebx]
add esp, 4
mov edx, 0xfffffffe
call fcn.00410cf0
mov ecx, dword [ebx]
mov edx, 0x61a780
call fcn.00413910
mov ecx, dword [ebx]
mov edx, 0xfffffffc
push str.exitCode
call fcn.0040f5e0
mov ecx, dword [ebx]
add esp, 4
mov edx, 2
push 0
call fcn.0040e020
add esp, 4
test eax, eax
je 0x4a0b0c
push str.Error_Emitting_ScriptContainer_Exit:
push dword [ebx]
call fcn.00470ba0
add esp, 8
mov ecx, dword [ebx]
call fcn.00414cb0
mov ecx, dword [ebx]
mov dword [ebx + 0x14], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
jmp fcn.00414cb0
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [edx + 4]
call fcn.00414800
mov ecx, dword [ebx]
or edx, 0xffffffff
push 0x61a7bc
call fcn.0040f5e0
mov ecx, dword [ebx]
add esp, 4
mov edx, 0xfffffffe
call fcn.00410cf0
mov ecx, dword [ebx]
mov edx, 0x61a7c4
call fcn.00413910
mov ecx, dword [ebx]
mov edx, 0xfffffffc
push 0x61a7cc
call fcn.0040f5e0
mov ecx, dword [ebx]
add esp, 4
call fcn.0040ea50
mov ecx, dword [ebx]
mov edx, 2
push 0
call fcn.0040e020
add esp, 4
test eax, eax
je 0x4a0a1e
push str.Error_Emitting_ScriptContainer_Data:
jmp 0x4a0a14
push esi
push str.Unknown_Command___d__Received_from_Slave_Container
push dword [ebx]
call fcn.00470ba0
mov ecx, dword [ebx]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
jmp fcn.00414cb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x4c4
mov edx, 0x61c4e8
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x4c4
push 0x61c504
push 0x61c520
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
or dword es:[edx], ecx
ret