Function at 0x407f30
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x4d57fc]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1b4]
mov ebx, ecx
test edi, edi
mov dword [esp + 0x58], edi
sete byte [esp + 0x13]
test edi, edi
je 0x407f66
mov dword [edi], 0
push 0x100
lea eax, [esp + 0x70]
mov dword [esp + 0x18], 0
push 0
push eax
call fcn.004638a0
add esp, 0xc
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x1c0]
call fcn.004053b0
test al, al
je 0x40843c
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0x63764e5c
mov dword [esp + 0x60], 0x74736f48
mov dword [esp + 0x64], 0x7070632e
mov byte [esp + 0x68], 0
test ebp, ebp
jne 0x4080a2
push str.No_plugins_in_state_transition
push 3
push 0x331
push eax
push dword [ebx + 4]
call fcn.0041e8a0
add esp, 0x14
test edi, edi
je 0x408099
push 0xbff6
mov ecx, ebx
call fcn.00405240
mov ecx, ebx
test al, al
je 0x40802e
mov dword [esp + 0x38], 0xbff6
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
lea eax, [esp + 0x38]
movq qword [esp + 0x4c], xmm0
push eax
movups xmmword [esp + 0x40], xmm0
call fcn.00406250
jmp 0x40843e
push 0xbff9
call fcn.00405240
mov ecx, ebx
test al, al
je 0x408048
mov dword [esp + 0x38], 0xbff9
jmp 0x408009
push 0xbffe
call fcn.00405240
mov ecx, ebx
test al, al
je 0x408062
mov dword [esp + 0x38], 0xbffe
jmp 0x408009
push 0xbffd
call fcn.00405240
mov ecx, ebx
test al, al
je 0x40807c
mov dword [esp + 0x38], 0xbffd
jmp 0x408009
push 0xbffc
call fcn.00405240
test al, al
je 0x408099
mov dword [esp + 0x38], 0xbffc
mov ecx, ebx
jmp 0x408009
mov al, byte [esp + 0x13]
jmp 0x40843e
push ebp
push str._u_plugins_in_state_transition
push 5
push 0x343
push eax
push dword [ebx + 4]
call fcn.0041e8a0
push 0x40
lea eax, [esp + 0x188]
mov esi, ebp
push 0
push eax
mov dword [esp + 0x38], esi
call fcn.004638a0
add esp, 0x24
test esi, esi
je 0x4082ac
nop word [eax + eax]
test edi, edi
je 0x4081c0
push 0xbff6
mov ecx, ebx
call fcn.00405240
mov ecx, ebx
test al, al
jne 0x408300
push 0xbff9
call fcn.00405240
mov ecx, ebx
test al, al
jne 0x4082f6
push 0xbffe
call fcn.00405240
mov ecx, ebx
test al, al
jne 0x4082ec
push 0xbffd
call fcn.00405240
mov ecx, ebx
test al, al
jne 0x4082e2
push 0xbffa
call fcn.00405240
test al, al
je 0x408172
xorps xmm0, xmm0
mov dword [esp + 0x18], 0xbffa
lea eax, [esp + 0x18]
movq qword [esp + 0x2c], xmm0
push eax
mov ecx, ebx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x20], xmm0
call fcn.00406250
push 0xbffb
mov ecx, ebx
call fcn.00405240
test al, al
je 0x4081ac
xorps xmm0, xmm0
mov dword [esp + 0x18], 0xbffb
lea eax, [esp + 0x18]
movq qword [esp + 0x2c], xmm0
push eax
mov ecx, ebx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x20], xmm0
call fcn.00406250
push 0xbffc
mov ecx, ebx
call fcn.00405240
test al, al
jne 0x4082b3
mov edi, dword [ebx + 0x12c]
xorps xmm0, xmm0
movups xmmword [esp + 0x38], xmm0
push 0
movups xmmword [esp + 0x4c], xmm0
mov eax, dword [edi]
mov esi, dword [eax + 8]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call dword [0x4b9328]
mov ecx, edi
call esi
test al, al
je 0x40843c
mov ecx, dword [esp + 0x38]
xor esi, esi
test ebp, ebp
je 0x40820b
nop dword [eax]
cmp ecx, dword [esp + esi*4 + 0x6c]
je 0x408224
inc esi
cmp esi, ebp
jb 0x408200
lea eax, [ecx - 0xbff6]
cmp eax, 8
ja case.0x40821d.49143
movzx eax, byte [eax + 0x408464]
jmp dword [eax*4 + 0x40845c]
cmp esi, ebp
jae 0x40820b
push ecx
mov ecx, ebx
call fcn.00405240
mov edi, dword [esp + 0x58]
test edi, edi
jne 0x40832d
cmp byte [esp + esi + 0x16c], 0
mov eax, dword [esp + 0x14]
jne 0x4082a4
dec eax
mov byte [esp + esi + 0x16c], 1
mov dword [esp + 0x14], eax
jmp 0x4082a4
add ecx, 0xffff400b
cmp ecx, 0xa
jae 0x40828f
movups xmm0, xmmword [esp + 0x38]
shl ecx, 5
movups xmmword [ecx + ebx + 0x138], xmm0
movups xmm0, xmmword [esp + 0x48]
movups xmmword [ecx + ebx + 0x148], xmm0
jmp 0x40828f
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.00406250
cmp byte [ebx + 0x124], 0
jne 0x4083f7
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4080e0
mov al, 1
jmp 0x40843e
xorps xmm0, xmm0
mov dword [esp + 0x18], 0xbffc
lea eax, [esp + 0x18]
movq qword [esp + 0x2c], xmm0
mov ecx, ebx
mov dword [esp + 0x34], 0
push eax
movups xmmword [esp + 0x20], xmm0
call fcn.00406250
jmp 0x40843e
mov dword [esp + 0x18], 0xbffd
jmp 0x408308
mov dword [esp + 0x18], 0xbffe
jmp 0x408308
mov dword [esp + 0x18], 0xbff9
jmp 0x408308
mov dword [esp + 0x18], 0xbff6
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
lea eax, [esp + 0x18]
movq qword [esp + 0x2c], xmm0
push eax
movups xmmword [esp + 0x20], xmm0
call fcn.00406250
jmp 0x40843e
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x40835b
mov ecx, dword [esp + 0x38]
nop dword [eax + eax]
cmp dword [eax + 0x98], 0
jle 0x408351
cmp dword [eax + 0x118], ecx
je 0x4083ad
mov eax, dword [eax + 0xa4]
test eax, eax
jne 0x408340
mov dword [edi], 0
push str.Base_host:_unexpected_wait_condition
push 1
push 0x383
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0x63764e5c
push eax
push dword [ebx + 4]
mov dword [esp + 0x74], 0x74736f48
mov dword [esp + 0x78], 0x7070632e
mov byte [esp + 0x7c], 0
call fcn.0041e8a0
push str.Base_host:_unexpected_wait_condition
push 0xa
call fcn.00407340
add esp, 0x1c
mov al, 1
jmp 0x40843e
mov dword [edi], eax
test eax, eax
je 0x408361
add eax, 0x58
mov dword [esp + 0x5c], 0x63764e5c
push eax
push str.Base_host:_event_from_plugin__s
push 3
push 0x37c
lea eax, [esp + 0x6c]
mov dword [esp + 0x70], 0x74736f48
push eax
push dword [ebx + 4]
mov dword [esp + 0x7c], 0x7070632e
mov byte [esp + 0x80], 0
call fcn.0041e8a0
add esp, 0x18
mov al, 1
jmp 0x40843e
push str.State_error_is_indicated
push 1
push 0x397
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0x63764e5c
push eax
push dword [ebx + 4]
mov dword [esp + 0x74], 0x74736f48
mov dword [esp + 0x78], 0x7070632e
mov byte [esp + 0x7c], 0
call fcn.0041e8a0
push str.State_error_is_indicated
push 0xb
call fcn.00407340
add esp, 0x1c
xor al, al
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00461564
add esp, 0x1a0
ret 8