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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x577018]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov esi, dword [ecx + 0x74]
mov eax, ecx
test esi, esi
mov dword [esp + 8], edx
push edi
cmovne eax, esi
mov dword [esp + 0x28], ecx
mov eax, dword [eax + 0x100]
test eax, eax
je 0x4959b9
mov edi, dword [ebp + 0xc]
cmp dword [eax], edx
jne 0x4959b2
cmp dword [eax + 0xc], edi
je 0x495d3f
mov eax, dword [eax + 4]
test eax, eax
jne 0x4959a5
mov edi, dword [ecx]
test esi, esi
mov eax, ecx
mov dword [esp + 0x14], edi
cmovne eax, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
push 0
push 0x18
test edi, edi
je 0x4959e9
mov ecx, edi
call fcn.00423950
mov esi, eax
mov dword [esp + 0x34], esi
jmp 0x4959f4
call fcn.00423320
mov esi, eax
mov dword [esp + 0x34], eax
add esp, 8
test esi, esi
je 0x495d3d
mov ecx, dword [esp + 0x20]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0
movq qword [esi + 0x10], xmm0
mov eax, dword [ecx + 0x100]
mov dword [esi + 4], eax
mov dword [ecx + 0x100], esi
push 0x1c
test edi, edi
je 0x495a34
mov ecx, edi
call fcn.00423950
mov edx, eax
mov dword [esp + 0x2c], edx
jmp 0x495a3f
call fcn.00423320
mov edx, eax
mov dword [esp + 0x2c], eax
add esp, 8
test edx, edx
je 0x495d3a
mov ecx, dword [esp + 0x20]
xorps xmm0, xmm0
movups xmmword [edx], xmm0
push 0
movq qword [edx + 0x10], xmm0
mov dword [edx + 0x18], 0
mov dword [esi + 8], edx
mov ecx, dword [ecx + 8]
push pe_nt_image_headers32
mov eax, dword [ecx + 0xd8]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0xd8], edx
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
test edi, edi
je 0x495aa3
mov ecx, edi
call fcn.00423950
jmp 0x495aa8
call fcn.00423320
mov edi, eax
add esp, 8
test edi, edi
je 0x495d3d
push 0x70
lea eax, [edi + 4]
push 0
push eax
call fcn.00519680
add esp, 0xc
lea eax, [edi + 0x7c]
push 0x94
push 0
push eax
call fcn.00519680
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x28]
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x30], edi
mov dword [edi + 0x78], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x74], eax
mov eax, dword [esp + 0xc]
mov dword [edi], ecx
mov eax, dword [eax]
mov dword [edi + 0xec], eax
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + 8]
mov byte [edi + 0x8c], al
mov eax, dword [edx + 0x80]
mov dword [edi + 0x80], eax
movzx eax, byte [edx + 0x19]
mov byte [edi + 0x19], al
mov eax, dword [edi + 8]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x495b4f
mov ecx, edi
call fcn.00446150
mov dword [esp + 0x10], eax
test eax, eax
je 0x495d15
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x495bb7
push eax
push str.___TRIGGER__s
push ecx
call fcn.00426f70
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x1c], eax
mov ecx, dword [edx]
cmp byte [ecx + 0x51], 0
je 0x495b81
mov edx, eax
call fcn.00423630
jmp 0x495bb7
mov eax, dword [edx + 0x6c]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
je 0x495bac
push 0xfffffffffffffff9
mov edx, ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.004472e0
add esp, 8
jmp 0x495bb7
test eax, eax
je 0x495bb7
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf9
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x495c22
mov ecx, dword [esp + 0x14]
push 0
push 0
call fcn.0045de90
add esp, 8
mov dword [esp + 0x1c], eax
mov edx, eax
lea ecx, [esp + 0x30]
call fcn.0045c340
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x495c0d
cmp byte [eax + 0x51], 0
jne 0x495c0d
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
push 0x10
push eax
push dword [esp + 0x24]
mov dword [esp + 0x24], eax
push edi
call fcn.00463de0
mov eax, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x495c1e
mov edx, ecx
mov ecx, eax
call fcn.0045dbe0
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x1c]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00495580
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x495c6a
mov edx, dword [esp + 0x10]
not eax
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x495c5d
push dword [esp + 0x18]
call fcn.00446ac0
add esp, 4
jmp 0x495c6a
mov eax, dword [edx + 0x6c]
mov ecx, dword [ecx + 0x40]
mov edx, dword [esp + 0x18]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x10]
mov edx, 0x45
call fcn.004464a0
mov ecx, dword [esp + 0x28]
mov edx, dword [edi + 4]
cmp dword [ecx + 0x24], 0
jne 0x495c96
mov dword [ecx + 4], edx
mov eax, dword [edi + 0x24]
mov dword [ecx + 0x24], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
jmp 0x495ca1
mov ecx, dword [edi]
call fcn.00423630
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x51], 0
jne 0x495ce3
cmp dword [ecx + 0x24], 0
jne 0x495ce3
mov eax, dword [esp + 0x10]
mov ecx, eax
mov edx, dword [esp + 0x20]
mov esi, dword [eax + 0x68]
lea edx, [edx + 0x60]
call fcn.00446bb0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx + 0x6c]
mov dword [edx + 4], eax
mov dword [ecx + 0x68], 0
mov dword [edx], esi
mov esi, dword [esp + 0x2c]
jmp 0x495ce7
mov edx, dword [esp + 0x24]
mov eax, dword [edi + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [edx + 8], eax
mov eax, dword [edi + 0x28]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x88]
mov dword [esi + 0x14], eax
call fcn.00449e50
mov ecx, edi
call fcn.00487140
mov ecx, dword [esp + 0x14]
mov edx, edi
call fcn.00423630
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], edx
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret