Function at 0x402934
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
lea eax, [esi + 0x80]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x4034f0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [eax + 8], 2
lea eax, [ebp + 0x18]
push eax
call fcn.0040631a
pop ecx
lea ecx, [esi + 0x20]
mov dword [esi + 0x88], 0xd
mov dword [ecx], eax
mov byte [ecx + 4], dl
lea eax, [esi + 0x54]
push ecx
push eax
call fcn.00406136
pop eax
pop ecx
lea eax, [esi + 0x20]
mov dword [esi + 0x88], 3
push eax
call fcn.00406199
pop eax
lea eax, [esi + 0x54]
push eax
call fcn.00407057
pop ecx
push 0xd
push str.trigger_event
push edx
push eax
call fcn.004041f8
add esp, 0x10
test al, al
mov byte [esi + 7], al
je 0x402be8
lea eax, [ebp + 0x18]
push eax
call fcn.0040633f
pop ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x88], 4
mov dword [ecx], eax
push 0
push ecx
call fcn.00406a5a
pop ecx
pop edi
lea ecx, [esi + 0x20]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], dl
mov dword [esi + 0x88], 0xc
lea eax, [esi + 0x60]
push ecx
push eax
call fcn.00406136
pop eax
pop ecx
lea eax, [esi + 0x20]
mov dword [esi + 0x88], 5
push eax
call fcn.00406199
pop eax
push 1
lea eax, [esi + 0x14]
push eax
call fcn.00406b66
pop ecx
pop edi
cmp eax, 1
jne 0x402c64
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], edx
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esi + 0x88], 6
add eax, 8
push eax
lea eax, [esi + 0x20]
push eax
call fcn.00403c34
pop eax
pop ecx
lea ecx, [esi + 0x20]
mov edx, 0x42d350
call fcn.004013f9
mov dword [esi + 0x4c], eax
mov dword [esi + 0x44], eax
add eax, 8
lea ecx, [esi + 0x60]
mov byte [esi + 6], dl
mov byte [esi + 0x50], dl
mov byte [esi + 4], 1
mov dword [esi + 0x88], 7
push ecx
push eax
call fcn.00405b0d
pop ecx
pop edi
mov edi, dword [esi + 0x44]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
and ecx, eax
shr eax, 0x19
movdqu xmm0, xmmword [edx + ecx]
movd xmm1, eax
lea edx, [edi + 0x18]
punpcklbw xmm1, xmm1
pshuflw xmm1, xmm1, 0
pshufd xmm1, xmm1, 0
movdqa xmmword [esi + 0x20], xmm0
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ecx
and dword [esi + 0x38], 0
pcmpeqb xmm1, xmm0
pmovmskb ecx, xmm1
mov word [esi + 0x3c], cx
mov byte [esi + 0x3e], al
lea eax, [esi + 0x20]
push eax
call fcn.0040374a
pop ecx
test eax, eax
mov dword [esi + 8], eax
je 0x402c24
lea eax, [esi + 0x60]
mov byte [esi + 4], 1
push eax
call fcn.00407057
pop ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x48], edx
mov eax, dword [esi + 8]
mov byte [esi + 4], 1
add eax, 0xffffffe8
push eax
call fcn.00407057
pop ecx
push edx
push eax
push dword [esi + 0x48]
push dword [esi + 0x10]
call fcn.004041f8
add esp, 0x10
test al, al
je 0x402ae0
mov ecx, dword [esi + 8]
mov byte [esi + 4], 1
lea eax, [esi + 0x6c]
add ecx, 0xfffffff4
push ecx
push eax
call fcn.00404a02
pop eax
pop ecx
mov eax, dword [esi + 0x44]
mov dl, byte [esi + 6]
lea ecx, [esi + 0x20]
mov byte [esi + 5], 1
mov dword [esi + 0x88], 8
mov dword [ecx], eax
mov byte [ecx + 4], dl
call fcn.00401157
mov eax, dword [esi + 0x6c]
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
lea edx, [eax + edx*8]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x2c], edx
cmp eax, dword [esi + 0x10]
lea edx, [esi + 0xc]
je 0x402c38
lea ecx, [eax + 8]
mov dword [esi + 0x28], ecx
mov dword [esi + 8], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x88], 0xb
mov dword [esi + 0xc], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x1c], ecx
push eax
lea eax, [esi + 0x18]
push eax
push edx
call fcn.00403fd8
add esp, 0xc
lea eax, [esi + 0xc]
mov dword [esi + 0x88], 0xa
push eax
call fcn.00406281
pop eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x88], 9
push eax
call fcn.00406281
pop eax
mov eax, dword [esi + 8]
jmp 0x402b80
lea ecx, [esi + 0x54]
mov dword [esi + 0x88], 2
call fcn.0040121a
lea eax, [ebp + 0x18]
mov dword [esi + 0x88], 1
push eax
call fcn.00406281
pop eax
and dword [esi + 0x88], 0
lea eax, [ebp + 0x10]
push eax
call fcn.00403b57
pop eax
jmp 0x402cc1
lea ecx, [esi + 0x4c]
mov dword [esi + 0x88], 6
call fcn.00401157
jmp 0x402c50
lea eax, [esi + 0x20]
mov byte [esi + 5], 0
mov dword [esi + 0x88], 8
push eax
call fcn.00403e15
pop eax
lea eax, [esi + 0x18]
mov dword [esi + 0x88], 5
push eax
call fcn.00406281
pop eax
lea ecx, [esi + 0x60]
mov dword [esi + 0x88], 4
call fcn.0040121a
lea eax, [esi + 0x14]
mov dword [esi + 0x88], 3
push eax
call fcn.00406281
pop eax
lea ecx, [esi + 0x54]
mov dword [esi + 0x88], 2
call fcn.0040121a
lea eax, [ebp + 0x18]
mov dword [esi + 0x88], 1
push eax
call fcn.00406281
pop eax
and dword [esi + 0x88], 0
lea eax, [ebp + 0x10]
push eax
call fcn.00403b57
pop eax
or dword [esi + 0x88], 0xffffffff
lea eax, [ebp + 0xc]
push eax
call fcn.00403b57
pop eax
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
mov al, byte [esi + 7]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret